Skip to main content
Glama

Muteware e-invoice tools

Read an e-invoice

read_e_invoice
Read-onlyIdempotent

Turns the XML of an electronic invoice (UBL or CII: Peppol BIS, XRechnung, ZUGFeRD, Factur-X) into plain fields: number, dates, currency, seller and buyer with VAT numbers and addresses, every line with quantity, price and VAT rate, the VAT per rate, the totals and the payment details. Use it to book or summarise an invoice from its exact values instead of reading the XML by eye. Give the XML text itself, not a PDF.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "xml": "<xml>"
    },
    "name": "read_e_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesThe XML text of the invoice (UBL or CII), complete, starting at <?xml or at the outer element. At most 150000 characters.

Output Schema

NameRequiredDescriptionDefault
noteNo
buyerNo
linesNo
formatNo
numberNo
reasonNo
sellerNo
syntaxNo
totalsNo
messageNo
paymentNo
currencyNo
documentNo
due_dateNo
readableYes
type_codeNo
issue_dateNo
line_countNo
profile_idNo
attachmentsNo
payment_termsNo
vat_breakdownNo
lines_left_outNo
buyer_referenceNo
note_on_amountsNo
order_referenceNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile needs no restatement. The description adds useful behavior: which standards are recognized, what level of detail is returned, and that PDF input is rejected. It stops short of stating what happens on malformed or unsupported XML.

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?

Two sentences, front-loaded with the core action and followed by the practical constraint. The long field enumeration is dense but earns its place by telling the agent what data will come back; it could be trimmed slightly since an output schema exists.

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

Completeness5/5

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

For a one-parameter extraction tool with an output schema and full annotations, the description covers formats accepted, fields returned, and the input constraint. Remaining gaps (error behavior, size limit) are minor and partly covered by the schema.

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?

With a single parameter at 100% schema coverage, the schema already carries the semantics. The description adds only the "XML text itself, not a PDF" clarification; it omits the size limit that the schema states (and the schema itself is internally inconsistent, 2,000,000 vs. 150,000 characters), so it does not fully compensate.

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?

States a specific transformation (XML e-invoice -> plain fields) and enumerates both the accepted dialects (UBL, CII, Peppol BIS, XRechnung, ZUGFeRD, Factur-X) and the extracted fields (number, dates, currency, parties, VAT numbers, lines, VAT per rate, totals, payment details). This is clearly a parse/extract tool, distinguishable from the validate-style siblings.

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?

"Use it to book or summarise an invoice from its exact values instead of reading the XML by eye" gives a clear use context, and "Give the XML text itself, not a PDF" sets an explicit input exclusion. It does not, however, address when to prefer it over the sibling check_e_invoice, nor what to do for non-supported formats.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources