Skip to main content
Glama

XRechnung Validator

Validate XRechnung

validate_xrechnung
Read-onlyIdempotent

Validate one XRechnung XML document (UBL or CII) or ZUGFeRD PDF with the official KoSIT validator. Provide exactly one of xml (the XML text) or file_base64. XML limit 5 MB. Free: 50 per IP per UTC day without a key, or 500 a month with a free API key. Files are not stored. Returns valid plus errors with rule_id and rule_url.

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

Input Schema

NameRequiredDescriptionDefault
xmlNoXRechnung XML (UBL or CII) as text.
file_nameNoOptional file name, e.g. invoice.pdf.
file_base64NoAn XML file or ZUGFeRD PDF, base64-encoded. Use this or xml.

Output Schema

NameRequiredDescriptionDefault
validYes
errorsYes
syntaxNo
summaryNo
fileNameNo
versionsNo
persistedNo
invoiceTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: rate limits (50 per IP per UTC day unauthenticated, 500/month with a free key), a 5 MB XML size cap, an explicit no-storage privacy statement, and the shape of the response (valid plus errors with rule_id and rule_url). These are exactly the operational facts an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Six short sentences, each carrying distinct load-bearing information: capability, input constraint, size limit, quotas, privacy, return shape. Front-loaded with the action and resource, no 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?

An output schema exists, so return values need only a summary, which the description supplies. Combined with input exclusivity, size cap, quota, and data-retention disclosure, nothing an agent needs to invoke this 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 is 3, but the description adds the mutual-exclusivity constraint ("exactly one of xml or file_base64") and the 5 MB limit, which the schema does not state. file_name remains undocumented in the description, keeping this from a 5.

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 and resource (validate one XRechnung XML document, UBL or CII) plus the engine used (official KoSIT validator). However it also claims to accept ZUGFeRD PDFs, which overlaps with the sibling validate_zugferd, and the description never clarifies when to prefer this tool over that sibling.

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?

Gives a concrete invocation rule ("Provide exactly one of xml or file_base64") and quota context, so usage is implied clearly. But there is no explicit when-to-use / when-not-to-use guidance relative to validate_zugferd or extract_zugferd, which matters given the ZUGFeRD overlap.

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.