Skip to main content
Glama
chartmogul

ChartMogul MCP Server

Official
by chartmogul

import_invoices

Import historical billing data into ChartMogul by adding customer invoices with line items and transaction details for custom API data sources.

Instructions

[ChartMogul API] Import invoices for customer (add historical billing data). Provide invoices data structure with invoices array containing invoice objects: external_id (string), date (string: ISO 8601), currency (string: 3-letter code), due_date (string: ISO 8601), customer_external_id (string), data_source_uuid (string), line_items (array: objects with type ("subscription" or "one_time"), subscription_external_id, subscription_set_external_id, plan_uuid, service_period_start, service_period_end, amount_in_cents (integer), prorated (boolean), proration_type ("differential"), quantity (integer), discount_code, discount_amount_in_cents (integer), tax_amount_in_cents (integer), transaction_fees_in_cents (integer), transaction_fees_currency, discount_description), transactions (array: objects with external_id, type ("payment" or "refund"), date (ISO 8601), result ("successful" or "failed"), amount_in_cents (integer)). Use for Custom API data sources. Returns import summary with created invoices and errors. REQUIRED: data (dict), uuid (string: customer UUID)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
uuidYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the return format ('Returns import summary with created invoices and errors') and mentions it's for historical data import, but doesn't address permission requirements, rate limits, idempotency, or error handling details that would be important for a data import operation.

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 front-loaded with the core purpose, followed by detailed parameter specifications. While comprehensive, the nested object specifications are lengthy but necessary given the complex data structure. Every sentence serves a clear purpose.

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?

For a complex mutation tool with no annotations and no output schema, the description does well by explaining the return format and providing extensive parameter details. However, it could better address behavioral aspects like error conditions or idempotency given the tool's complexity.

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?

Despite 0% schema description coverage, the description comprehensively explains both parameters: 'data' is detailed as 'invoices data structure' with full specification of nested objects and arrays, and 'uuid' is clarified as 'customer UUID'. This fully compensates for the schema's lack of documentation.

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 ('Import invoices for customer'), target resource ('historical billing data'), and distinguishes from siblings by specifying it's for 'Custom API data sources' unlike other invoice-related tools like list_invoices or retrieve_invoice. The verb 'import' with 'add historical billing data' provides precise scope.

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

Usage Guidelines4/5

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

The description explicitly states 'Use for Custom API data sources' which provides clear context for when to use this tool. However, it doesn't mention when NOT to use it or name specific alternatives among the many sibling tools, preventing a perfect score.

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