Skip to main content

List all invoice items

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READstripe.stripe-list-v1-invoiceitems
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: stripe-2026.07.12.2
  • Descriptor hash: 85bede1d2cd15d9b9ba16aa43f92f8dafee9581b0ca286a2d60781345d3bb6ce

Use this when you need Stripe to perform GET /v1/invoiceitems: List all invoice items. Path parameters required in path_params: none. Query/filter parameters may include: created, customer, customer_account, ending_before, expand, invoice, limit, pending, starting_after. Read-only. Use compact response_mode first; add limit, cursors, expand, and fields to control token cost. Requires MAD MCP Portal grant plus Stripe provider auth via x-stripe-api-key or STRIPE_API_KEY.

Request Body

{
"jsonrpc": "2.0",
"id": "stripe-stripe-list-v1-invoiceitems-example",
"method": "tools/call",
"params": {
"name": "stripe.stripe-list-v1-invoiceitems",
"arguments": {
"page": "",
"limit": "",
"query": "",
"expand": "",
"fields": "",
"profileId": "",
"path_params": "",
"profileSlug": "",
"ending_before": "",
"response_mode": "compact"
}
}
}

Arguments Schema

{
"type": "object",
"properties": {
"page": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Cursor for Stripe search or API v2 pagination when the endpoint supports it."
},
"limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Page size for list/search endpoints. Clamped to STRIPE_MAX_LIMIT, max 100."
},
"query": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Stripe query/filter parameters. Use provider names exactly; nested objects are form-encoded."
},
"expand": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null,
"description": "Stripe fields to expand. Keep short because expansions increase response size and rate-limit cost."
},
"fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null,
"description": "Optional top-level fields to keep when response_mode is metadata or payload."
},
"profileId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "MAD MCP Portal routing hint only. When multiple Stripe profiles are connected and portal.select_service_profile is unavailable, pass the chosen profile id here; the portal consumes it before forwarding. Direct Stripe MCP runtime ignores this value."
},
"path_params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Path parameter values keyed by Stripe placeholder name, for example {'customer': 'cus_...'}.'"
},
"profileSlug": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "MAD MCP Portal routing hint only. When multiple Stripe profiles are connected and portal.select_service_profile is unavailable, pass the chosen profile slug here; the portal consumes it before forwarding. Direct Stripe MCP runtime ignores this value."
},
"ending_before": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Cursor for v1 reverse pagination. Mutually exclusive with starting_after."
},
"response_mode": {
"enum": [
"compact",
"metadata",
"payload"
],
"type": "string",
"default": "compact",
"description": "compact returns key fields; metadata returns redacted JSON metadata; payload returns redacted JSON text."
},
"starting_after": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Cursor for v1 list pagination. Mutually exclusive with ending_before."
},
"max_output_chars": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Maximum response JSON characters. Clamped by STRIPE_MAX_OUTPUT_CHARS."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or provider operation completed successfully."
},
"data": {
"description": "Compact redacted provider data when available."
},
"error": {
"description": "Safe error details when ok is false."
},
"recovery": {
"type": "string",
"description": "Safe next step for correcting configuration or input."
},
"truncated": {
"type": "boolean",
"description": "Whether output was bounded by the configured response limit."
},
"request_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Safe Stripe request identifier for support correlation."
},
"status_code": {
"type": "integer",
"description": "Stripe HTTP status code when a provider request was made."
}
},
"description": "Bounded, secret-safe Stripe MCP operation result.",
"additionalProperties": true
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "stripe-stripe-list-v1-invoiceitems-example",
"method": "tools/call",
"params": {
"name": "stripe.stripe-list-v1-invoiceitems",
"arguments": {
"page": "",
"limit": "",
"query": "",
"expand": "",
"fields": "",
"profileId": "",
"path_params": "",
"profileSlug": "",
"ending_before": "",
"response_mode": "compact"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool stripe.stripe-list-v1-invoiceitems executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}