Skip to main content
Glama

E-Invoice Reader - XRechnung, ZUGFeRD, Factur-X, UBL to JSON

e_invoice_reader
Read-onlyIdempotent

Read an EU e-invoice (XRechnung UBL or CII, ZUGFeRD / Factur-X PDF with embedded XML, Peppol UBL) and get clean JSON: seller, buyer, VAT IDs, invoice number, dates, line items, net/VAT/gross totals, IBAN, payment terms, plus checks (totals add up, IBAN valid, mandatory fields present) and CSV of the lines. Germany requires receiving e-invoices since 2025. Runs on our server, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.01/call via x402 at https://radarbg.com/x402/e-invoice-reader.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "e_invoice_reader"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlNoThe e-invoice XML as text
fileNameNoOptional file name, e.g. invoice.pdf
fileContentNoOr base64 of the XML or the ZUGFeRD/Factur-X PDF

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent, and the description adds substantially beyond them: server-side execution, no storage of data, a 5-calls-per-day-per-IP free tier, paid access via X-API-Key header, and a $0.01/call x402 path. Auth mechanics and rate limits are exactly the kind of detail annotations cannot carry.

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?

Purpose and input formats are front-loaded in the first clause, followed by outputs, then operational facts. The single run-on sentence is dense and the German regulatory aside plus two pricing URLs add bulk, but nearly every fragment carries usable information.

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?

With no output schema, the description compensates by enumerating returned fields and validation checks; with annotations covering safety, the remaining burden is operational, which is handled. The one real gap is that no input parameter is required and the description never says at least one of xml/fileContent must be supplied, so a caller could not know how to avoid an empty call.

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 coverage is 100% and the schema already explains xml, fileName, and base64 fileContent including the PDF case. The description reinforces that both raw XML and embedded-XML PDFs are acceptable but adds no precedence rule for choosing xml vs fileContent, so baseline 3 applies.

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?

Uses a specific verb ('Read') with a precisely scoped resource: EU e-invoices in named formats (XRechnung UBL/CII, ZUGFeRD/Factur-X PDF, Peppol UBL), and states the transformation target ('get clean JSON'). The enumerated output fields (seller, buyer, VAT IDs, line items, totals, IBAN, payment terms, validation checks, CSV of lines) make it unmistakable versus siblings like pdf_to_text or bank_statement_converter.

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 supported-format list effectively defines when this tool applies and implicitly excludes generic PDF/XML conversion tools, but no sibling is named and no explicit 'use X instead' condition is given. The 'Germany requires receiving e-invoices since 2025' line is motivational context rather than routing guidance.

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