Skip to main content
Glama

Finanz & SEO Tools API

Extract structured JSON from a European e-invoice

eu_einvoice
Read-only

Extract structured JSON from a European e-invoice: XRechnung, ZUGFeRD / Factur-X (PDF with embedded, compressed XML), UBL 2.1 and UN/CEFACT CII. Returns seller/buyer (name, address, VAT ID, contact), buyer reference / Leitweg-ID, order reference, issue/due/delivery dates, payment terms, IBAN/BIC, payment reference, line items, VAT breakdown and totals. Send JSON {xml}|{base64}|{url} or the raw XML/PDF as request body (application/xml or application/pdf, max 3.5 MB). Price: $0.008 USDC per call via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
urlNopublic http(s) URL of the XML or PDF
xmlNoUBL or CII XML
base64Nobase64 XML or ZUGFeRD/Factur-X PDF

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover readOnly/openWorld; the description adds substantive behavior the agent could not otherwise know: a 3.5 MB size cap, accepted content types (application/xml, application/pdf), and a per-call price of $0.008 USDC via x402. It also lists exactly what is extracted, standing in for the absent output schema.

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?

Front-loaded with purpose, then formats, then the extracted-field inventory, then transport/size/price. Every clause carries information, though the long return-field enumeration makes the first sentence heavy; it is justified only because no 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?

All three parameters are covered by the schema, size and content-type limits are stated, cost is disclosed, and return contents are enumerated in lieu of an output schema. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real meaning: it presents {xml}, {base64} and {url} as mutually exclusive alternatives (one-of semantics the schema does not encode) and documents a fourth, schema-less path of posting raw XML/PDF as the request body.

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 and resource ('Extract structured JSON from a European e-invoice') and enumerates the supported syntaxes (XRechnung, ZUGFeRD/Factur-X, UBL 2.1, UN/CEFACT CII). The qualifier 'PDF with embedded, compressed XML' implicitly separates it from the OCR sibling eu_einvoice_from_scan without needing to name it.

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?

Input-format constraints give clear routing context: it is the tool for machine-readable XML or hybrid PDFs, and the 'embedded, compressed XML' phrasing signals that image-only PDFs belong elsewhere. It does not explicitly name alternatives such as eu_einvoice_from_scan, eu_einvoice_generate or eu_einvoice_validate, so no hard exclusions are stated.

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