Skip to main content
Glama
udaykapur

stripe-mcp-server

by udaykapur

Create Invoice Item

create_invoice_item

Add a line item to an invoice or the customer's next upcoming invoice. Provide customer ID, optionally invoice ID, price ID or amount with currency.

Instructions

Add a line item to an invoice (or to the customer's next upcoming invoice).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerYesCustomer ID (cus_...)
invoiceNoInvoice ID (in_...). Omit to add to next upcoming invoice.
priceNoPrice ID (price_...) - use this OR amount+currency
amountNoAmount in smallest currency unit (use with currency, not price)
currencyNoCurrency code (use with amount)
descriptionNoLine item description
quantityNoQuantity
metadataNoMetadata
idempotency_keyNoOptional idempotency key for safe retries
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It only states the action without disclosing traits like mutation, idempotency, effects on invoice totals, or required permissions. This is insufficient for a create tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that efficiently conveys the core function. It is concise, though could include more detail without losing brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 9 parameters, no output schema, and no annotations, the description is too brief. It does not describe the return value, the line item structure, or behavioral implications, leaving gaps for the agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% parameter coverage with descriptions, so the description adds no additional meaning. It does not explain parameter relationships or provide usage tips beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description uses specific verb 'Add' and resource 'line item to an invoice' and distinguishes between adding to an existing invoice or the next upcoming invoice. This clearly differentiates it from sibling tools like create_invoice or finalize_invoice.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description implies usage (add line items to invoices) but does not explicitly provide when to use this tool versus alternatives, nor does it state when not to use it or list prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/udaykapur/stripe-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server