Skip to main content
Glama
asgard-ai-platform

MCP Universal EC E-Invoice Server

create_b2b_invoice

Creates a B2B invoice using the A0401 named nested format and returns the API response, enabling automated e-invoice generation for business transactions.

Instructions

Create a B2B invoice using named nested format (A0401). Returns the API response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesList of product items. Each item: {Description, Quantity, UnitPrice, TaxType, Amount, SequenceNumber, optional: Unit, Remark, RelateNumber}.
currencyNoCurrency code (e.g. 'USD').
tax_rateYesTax rate.
tax_typeYesTax type.
buyer_nameYesBuyer name.
print_markYesPrint mark ('Y' or 'N').
tax_amountYesTax amount.
buyer_emailNoBuyer email address.
donate_markYesDonate mark ('0'=no donate).
main_remarkNoMain remark.
seller_nameYesSeller name.
buyer_remarkNoBuyer remark.
check_numberNoCheck number.
invoice_dateYesInvoice date (YYYYMMDD).
invoice_timeYesInvoice time (HHmmss).
invoice_typeYesInvoice type code.
sales_amountYesTaxable sales amount.
seller_emailNoSeller email address.
total_amountYesTotal amount including tax.
buyer_addressNoBuyer address.
exchange_rateNoExchange rate.
invoice_numberYesInvoice number.
seller_addressNoSeller address.
buyer_facsimileNoBuyer facsimile number.
buyer_telephoneNoBuyer telephone number.
discount_amountNoDiscount amount.
buyer_identifierYesBuyer tax ID.
seller_facsimileNoSeller facsimile number.
seller_telephoneNoSeller telephone number.
buyer_role_remarkNoBuyer role remark.
seller_identifierYesSeller tax ID.
seller_role_remarkNoSeller role remark.
bonded_area_confirmNoBonded area confirm.
zero_tax_rate_reasonNoZero-tax-rate reason code.
buyer_customer_numberNoBuyer customer number.
buyer_person_in_chargeNoBuyer person in charge.
customs_clearance_markNoCustoms clearance mark.
seller_customer_numberNoSeller customer number.
seller_person_in_chargeNoSeller person in charge.
original_currency_amountNoOriginal currency amount.
Behavior2/5

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

With no annotations provided, the description fails to disclose behavioral traits such as side effects, permissions required, or error handling. It merely states creation and response return, which is minimal.

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 with two sentences, front-loading the main purpose. It wastes no words, though it could be expanded to include critical usage context.

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 tool's high complexity (40 parameters, 16 required) and no output schema, the description is insufficient. It does not explain the meaning of 'named nested format', important constraints, or typical invocation patterns.

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?

Schema description coverage is 100%, so the schema fully documents each parameter. The description adds no additional semantic value beyond stating the format (A0401). Baseline score of 3 applies.

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 clearly states the tool's verb ('Create'), resource ('B2B invoice'), and format ('named nested format A0401'). It also mentions it returns the API response. However, it does not explicitly differentiate from sibling tools like create_b2b_exchange_invoice, though the name and format hint at distinction.

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 on when to use this tool versus alternatives (e.g., other invoice creation tools). No indications of prerequisites, context, or when not to use it.

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