Skip to main content
Glama

ZUGFeRD & XRechnung Validator

Validate ZUGFeRD / Factur-X / XRechnung XML

validate_einvoice_xml
Read-onlyIdempotent

Validate a ZUGFeRD 2.3, Factur-X, or XRechnung (UN/CEFACT CII or OASIS UBL 2.1) invoice XML document against EN 16931 and German BR-DE rules, including profile detection, mandatory BT fields, IBAN Mod-97, Leitweg-ID ISO 7064 Mod 97-10, line-item math, and net/tax/gross reconciliation.

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": "validate_einvoice_xml"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesRaw ZUGFeRD, Factur-X, or XRechnung XML invoice document (CII CrossIndustryInvoice or UBL Invoice/CreditNote).
fileNameNoOptional filename label included in the validation report (defaults to invoice.xml).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine substance beyond that: profile auto-detection, mandatory BT field checks, IBAN Mod-97, Leitweg-ID ISO 7064 Mod 97-10, line-item math, and net/tax/gross reconciliation, which tells the agent how thorough the validation is. It stops short of saying what the report contains or how failures are surfaced.

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?

One sentence, front-loaded with the verb and the supported standards, then a compact list of checks — no filler or marketing language. It is dense enough that the enumerated rule set could be broken into a short second sentence, but every clause carries information.

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

Completeness3/5

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

No output schema exists, so the description bears the burden of describing return values, and it never says what comes back — a pass/fail verdict, a list of rule violations, a report object — leaving only the incidental mention of a 'validation report' in the fileName parameter. For an otherwise well-specified validator, the missing response shape is the main gap.

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% with only two parameters, both fully documented in the schema itself (xml as raw CII/UBL document, fileName as an optional report label). The description adds no parameter-level meaning such as the 55,000-character ceiling or the default 'invoice.xml' behavior, so baseline 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?

States a specific verb (Validate) and a precisely scoped resource (ZUGFeRD 2.3 / Factur-X / XRechnung invoice XML in CII or UBL 2.1), plus the rule sets applied (EN 16931, BR-DE). It never names the sibling validate_leitweg_id, but by listing Leitweg-ID ISO 7064 as one check among many it implicitly frames itself as the whole-document validator rather than a single-field check.

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

Usage Guidelines3/5

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

Applies a clear implicit scope by enumerating the accepted document formats, so an agent can tell whether a given XML is in bounds. It gives no guidance on when to use this instead of validate_leitweg_id, no when-not conditions, and no prerequisites (e.g. size limits on the xml string).

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