Skip to main content
Glama

Finanz & SEO Tools API

Validate a German/EU e-invoice (E-Rechnung) with the OFFICIAL rule sets

eu_einvoice_validate
Read-only

Validate a German/EU e-invoice (E-Rechnung) with the OFFICIAL rule sets: CEN EN 16931 schematron (UBL + CII, validation-1.3.17) and KoSIT XRechnung 3.0 CIUS schematron. Accepts XRechnung UBL/CII XML or a ZUGFeRD / Factur-X PDF (embedded XML is extracted). Checks well-formedness, detects syntax and profile (XRechnung, Factur-X MINIMUM/BASIC WL/BASIC/EN16931/EXTENDED, Peppol BIS), returns valid/invalid with every error and warning (rule ID such as BR-CO-16 or BR-DE-15, message, XPath location) plus a short invoice summary. Send JSON {xml}|{base64}|{url} or the raw XML/PDF body (application/xml, application/pdf; max 3.5 MB). Optional rules=auto|en16931|xrechnung. Price: $0.02 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_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNopublic http(s) URL of the XML or PDF
xmlNoXRechnung / EN 16931 invoice XML (UBL 2.1 Invoice/CreditNote or UN/CEFACT CII)
rulesNoauto (default): XRechnung rules for XRechnung documents, EN 16931 for others
base64Nobase64 of the XML or of a 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?

Beyond the readOnly/openWorld annotations, it discloses the extraction behavior for PDFs, the size cap (3.5 MB), accepted content types, the return payload (valid/invalid with rule IDs like BR-CO-16, messages, XPath, plus an invoice summary), and the $0.02 USDC x402 price. That is far more behavioral context than the annotations 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?

Content is front-loaded with the purpose and rule sets, and nearly every clause carries actionable detail. It is a single dense paragraph, so the format/limit/price details are less scannable than they could be, but there is little genuine filler.

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?

With no output schema, the description fully covers the return shape (validity verdict, error/warning list with rule IDs and XPath, invoice summary) and the input modes. An agent can invoke this tool correctly without further information.

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 already 100%, yet the description still adds meaning: it explains the transport alternatives ({xml}/{base64}/{url} or raw body with application/xml and application/pdf), the 3.5 MB limit, and the auto rule-selection logic. Only the url/base64 field-level distinctions are left entirely to the schema.

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 names a specific verb and resource ('Validate a German/EU e-invoice') and pins the exact rule sets used (CEN EN 16931 schematron validation-1.3.17, KoSIT XRechnung 3.0 CIUS). It clearly distinguishes validation from the sibling generation/scan tools by emphasizing the OFFICIAL schematron rule sets and error output.

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?

It states the concrete inputs that make the tool applicable (XRechnung UBL/CII XML or ZUGFeRD/Factur-X PDF, embedded XML auto-extracted) and explains the default behavior of rules=auto. It does not explicitly say when to prefer a sibling such as eu_einvoice or eu_einvoice_generate, but the validation-only scope is unambiguous.

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