Skip to main content
Glama

Fakturai — German E-Invoice (ZUGFeRD / Factur-X / E-Rechnung)

parse_einvoice

Read an existing e-invoice into structured JSON: ZUGFeRD/Factur-X PDF (base64), XRechnung or EN 16931 CII XML, or UBL 2.1 Invoice/CreditNote XML. Returns number, dates, seller, buyer, lines, VAT breakdown, totals, payment details and notes; amounts stay strings exactly as in the XML. Does not validate (use validate_einvoice). No authentication required. Keywords: E-Rechnung auslesen, XRechnung lesen, ZUGFeRD XML extrahieren, invoice parser.

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": {
      "content": "<content>"
    },
    "name": "parse_einvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
content_formatNopdf_b64

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden well: it discloses no authentication requirement, that no validation is performed, and a meaningful data-fidelity quirk (amounts stay strings exactly as in the XML) that an agent would otherwise mishandle. It stops short of describing failure modes for malformed or unsupported documents and says nothing about size limits or error signaling.

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 purpose, formats, and exclusion are front-loaded in the first two sentences, and each sentence carries information. The trailing keyword block (German-language search terms) is retrieval-oriented filler rather than agent guidance, which is the only real bloat.

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?

An output schema exists, so the field enumeration (number, dates, seller, buyer, lines, VAT breakdown, totals) is somewhat redundant, but the string-amount note is genuine added value. The remaining gap is the undocumented content_format value set, which is the one thing an agent needs to actually construct a correct 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 description coverage is 0% for both parameters, so the description must compensate. It does explain what "content" holds (base64 PDF or XML text) via the format list, but it never names content_format nor gives its accepted values (the pdf_b64 default is invisible), leaving the agent to guess the selector string. Partial compensation, not full.

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 verb and resource ("Read an existing e-invoice into structured JSON") and immediately enumerates the supported input formats: ZUGFeRD/Factur-X PDF base64, XRechnung/EN 16931 CII XML, and UBL 2.1 Invoice/CreditNote XML. This distinguishes it from the sibling generate_einvoice (writing) and validate_einvoice (checking) without ambiguity.

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

Usage Guidelines5/5

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

Explicitly scopes the tool to reading existing documents and names the excluded use case with the correct alternative: "Does not validate (use validate_einvoice)." The format list implies that generation tasks belong elsewhere. The agent gets both a when-to-use and a when-not-to-use signal in a single sentence.

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