Skip to main content
Glama
chartmogul

ChartMogul MCP Server

Official
by chartmogul

retrieve_invoice

Retrieve a specific invoice by UUID from ChartMogul, including line items, transactions, and customer details. Specify validation type to filter results.

Instructions

[ChartMogul API] Retrieve specific invoice by UUID. Returns complete invoice object with: uuid, customer_uuid, external_id, date, due_date, currency, line_items (array with full line item objects including uuid, external_id, type, subscription_uuid, subscription_external_id, subscription_set_external_id, plan_uuid, prorated, service_period_start, service_period_end, amount_in_cents, quantity, discount_code, discount_amount_in_cents, tax_amount_in_cents, transaction_fees_in_cents, transaction_fees_currency, discount_description, event_order, account_code), transactions (array with full transaction objects including uuid, external_id, type, date, result, amount_in_cents), customer details. Specify validation_type to control included invoices. REQUIRED: uuid (string: invoice UUID), validation_type (string: "valid", "invalid", or "all")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes
validation_typeYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by detailing the return structure (complete invoice object with nested arrays for line_items and transactions) and specifying required parameters. It lacks information on error handling, rate limits, or authentication needs, but provides substantial behavioral context beyond basic retrieval.

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 appropriately sized and front-loaded with the core purpose, followed by return details and parameter specifics. It could be slightly more concise by avoiding repetition (e.g., 'full' in both line_items and transactions), but every sentence adds value, and it's well-structured for clarity.

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

Completeness4/5

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

Given no annotations and no output schema, the description provides good completeness for a retrieval tool: it explains the action, return data structure, and parameters. It lacks details on error cases or API limits, but for a tool with 2 parameters and no complex behavior, it's largely sufficient.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate fully. It adds significant meaning by explaining 'uuid' as 'invoice UUID' and 'validation_type' with its allowed values ('valid', 'invalid', or 'all') and purpose ('control included invoices'), which are not evident from the schema alone. This fully documents both parameters.

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?

The description clearly states the specific action ('Retrieve specific invoice by UUID') and resource ('invoice'), distinguishing it from sibling tools like 'list_invoices' (which returns multiple) and 'import_invoices' (which creates). It explicitly mentions the ChartMogul API context.

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?

The description implies usage by specifying it retrieves a 'specific' invoice, suggesting it should be used when you have the UUID, but does not explicitly state when to use it versus alternatives like 'list_invoices' or provide exclusions. It mentions the 'validation_type' parameter but not its impact on tool selection.

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/chartmogul/chartmogul-mcp-server'

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