Skip to main content
Glama
asgard-ai-platform

MCP Universal EC E-Invoice Server

batch_cancel_invoice

Resubmit full invoice data with cancellation date, time, and reason to cancel an invoice. Returns API response.

Instructions

Batch cancel an invoice by re-submitting full invoice data with cancellation info (B0701). Returns the API response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesList of invoice line items in positional format (B). Each item: {B1, B2, B3, B5, B6, B7, B13}.
totalYesTotal amount including tax (C7).
buyer_idYesBuyer identifier (A5).
currencyNoCurrency code (C11).
discountNoDiscount amount (C8).
free_taxYesTax-exempt sales amount (C2).
tax_rateYesTax rate (C5).
tax_typeYesTax type (C4).
zero_taxYesZero-tax-rate sales amount (C3).
donate_toNoNPO ban love code (A29).
buyer_nameYesBuyer name (A6).
print_markYesPrint mark (A28).
tax_amountYesTax amount (C6).
cancel_dateYesCancellation date (YYYYMMDD).
cancel_timeYesCancellation time (HHmmss).
carrier_id1NoCarrier ID primary (A26).
carrier_id2NoCarrier ID secondary (A27).
donate_markYesDonate mark (A24).
main_remarkNoMain remark (A16).
carrier_typeNoCarrier type (A25).
invoice_dateYesInvoice date (A3).
invoice_timeYesInvoice time (A4).
invoice_typeYesInvoice type code (A22).
sales_amountYesTaxable sales amount (C1).
cancel_reasonYesCancellation reason.
exchange_rateNoExchange rate (C10).
random_numberYesRandom number (A30).
invoice_numberYesInvoice number (A2, positional format).
zero_tax_reasonNoZero-tax-rate reason code (A31).
customs_clearanceNoCustoms clearance mark (A17).
original_currency_amountNoOriginal currency amount (C9).
Behavior2/5

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

The description mentions 're-submitting full invoice data with cancellation info', implying a mutation operation, but does not explicitly state that this cancels the invoice or disclose side effects like irreversibility. No annotations exist to clarify behavior. The description is sparse, only noting that it returns an API response.

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 concise and front-loaded, with a single sentence that conveys the basic purpose. It is not overly verbose, but it could include more information without significant bloat, such as clarifying batch behavior.

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?

Given the complexity of 31 parameters and no output schema or annotations, the description is insufficient. It does not explain the cancellation process, when to use this batch version, or any resubmission rules. A tool with many required fields demands more contextual guidance.

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?

The input schema has 100% description coverage, but many descriptions are cryptic codes (e.g., 'C2', 'A5'). The tool description adds no additional meaning beyond the schema. However, the phrase 're-submitting full invoice data' provides context that all parameters are needed to reconstruct the original invoice, which slightly aids understanding.

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

Purpose4/5

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

The description states 'Batch cancel an invoice', which clearly indicates the action and resource. However, the term 'batch' is ambiguous and not differentiated from the sibling tool 'cancel_invoice', which likely handles single invoice cancellations. The description lacks specificity about what the batch aspect entails.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus other cancellation tools, such as 'cancel_invoice'. There is no mention of prerequisites, context, or scenarios where batch cancellation is appropriate. The description does not help the agent decide when to invoke this tool.

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/asgard-ai-platform/mcp-universalec-e-invoice'

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