Skip to main content
Glama

InkVoice — XRechnung & E-Invoicing

Check an e-invoice

validate_einvoice
Read-only

Reads an existing electronic invoice and reports what is wrong with it. Accepts XRechnung and ZUGFeRD XML in either EN 16931 syntax — CII (used by XRechnung and ZUGFeRD) and UBL — and reports the syntax and profile it found along with the invoice's key fields, so it also answers "what is this file?".

It checks the rules behind most real rejections: BT-10 buyer reference present, and its Leitweg-ID check digit when it looks like one; BT-34 and BT-49 electronic addresses present; tax category S not used at 0 %; BT-120 exemption reason present for categories E and AE; line amounts summing to BT-106; net plus tax equalling the BT-112 gross; BT-115 amount due matching gross less prepaid; and the due date not falling before the issue date.

What this does NOT do:

  • It is NOT the KoSIT Prüftool and is not a substitute for it. It covers the rules that account for most rejections, not the full EN 16931 Schematron suite. A file that passes here can still be rejected by a Rechnungseingangsportal.

  • It does not check the XSD schema, so a structurally invalid document may parse here.

  • It reads XML only. A ZUGFeRD PDF must have its embedded XML extracted first — pass the XML, not the PDF.

Nothing is stored: the document is parsed in memory and discarded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlYesThe full XML text of the invoice. For ZUGFeRD, the XML extracted from the PDF, not the PDF itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark readOnlyHint=true, but the description adds meaningful behavioral detail: 'Nothing is stored: the document is parsed in memory and discarded.' It also discloses limitations (not XSD validation, not full EN 16931 Schematron suite) and an important nuance: a file that passes can still be rejected by a portal. This goes well beyond the annotation.

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 description is long but well-structured and front-loaded with the core purpose. It uses a clear 'What this does NOT do' section and bullet-like lists. Every sentence carries useful information, though the detailed enumeration of checked rules (BT-10, BT-34, etc.) could be considered verbose for an AI agent. Still, it is appropriately sized for a complex validation tool.

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 tool that validates complex e-invoices, the description is remarkably complete. It covers accepted input formats, the specific rules checked, limitations and exclusions, behavioral side effects (memory-only, no storage), and what the output will contain ('reports the syntax and profile it found along with the invoice's key fields'). No gaps remain that would prevent correct selection and invocation.

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

Parameters5/5

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

Schema coverage is 100% and the single 'xml' parameter is well described. The description adds substantial meaning: it accepts XRechnung and ZUGFeRD XML in EN 16931 syntax (CII and UBL), clarifies the input must be the extracted XML not the PDF, and explains what the tool does with that XML. This goes far beyond the schema's basic description.

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?

The description opens with a specific verb and resource: 'Reads an existing electronic invoice and reports what is wrong with it.' It also clarifies it identifies syntax/profile and key fields, answering 'what is this file?'. This clearly differentiates it from siblings like create_xrechnung and check_leitweg_id, and the 'What this does NOT do' section further distinguishes it from the official KoSIT Prüftool.

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?

Provides explicit when-not: it is not the KoSIT Prüftool, does not check XSD schema, and reads XML only (not ZUGFeRD PDFs). It also states a passing file may still be rejected by a Rechnungseingangsportal. However, it does not explicitly mention sibling tools like check_leitweg_id when the task is only a Leitweg-ID check, so it lacks direct alternative routing.

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