Skip to main content
Glama

XRechnung Pro

Validate an e-invoice (KoSIT validator)

validate_e_invoice
Read-onlyIdempotent

Check whether an e-invoice is valid: XRechnung (UBL or CII XML) or ZUGFeRD/Factur-X (PDF with embedded XML). Uses the official KoSIT validator for XRechnung 3.0.2 and explains every error in German. Free, no account. Pass the XML as text, or a PDF as base64.

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_e_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlNoThe invoice XML as text
pdf_base64NoA ZUGFeRD/Factur-X PDF, base64 encoded (max. 5 MB)

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 readOnly, idempotent, non-destructive and closed-world behavior, so the description buys credit by adding what the annotations cannot: the official KoSIT validator backend, the supported XRechnung version 3.0.2, German-language error explanations, and no account or cost requirement. It leaves the exact success/error response shape and any XML size or rate limits unstated.

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?

Three short sentences, front-loaded with the core verb and resource, with format support and input mechanics following in a logical order. Slight redundancy with the title ('Validate an e-invoice') but no padding.

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?

With no output schema, the description carries the burden of describing the result and only partially does so ('explains every error in German'). It never clarifies that exactly one of the two optional parameters must be provided, nor what a passing result looks like, which are the two gaps an agent would hit when invoking it.

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 coverage is 100% and both parameters are documented in the schema, so the baseline is 3. The sentence 'Pass the XML as text, or a PDF as base64' reinforces which parameter maps to which invoice format, but it does not state that the two are mutually exclusive or that at least one must be supplied despite zero required parameters.

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?

The description gives a specific verb ('Check whether ... is valid') plus a concrete resource and the supported formats (XRechnung UBL/CII, ZUGFeRD/Factur-X), so the tool is unmistakable against siblings like create_e_invoice. It does not explicitly name an alternative tool, which keeps it just short of a 5.

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?

Usage is implied rather than stated: 'Pass the XML as text, or a PDF as base64' tells the agent how to supply input and implicitly which parameter applies to which format. There is no explicit when-to-use statement, no when-not-to-use, and no routing to or from sibling tools such as create_e_invoice or check_leitweg_id.

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