Skip to main content
Glama

Validate e-invoice

validate_einvoice

Validates an XRechnung (UBL or CII XML) or a ZUGFeRD / Factur-X PDF with the official KoSIT validator and the XRechnung configuration and returns the report: valid or invalid, findings with rule id, location and rule text. Charged per document from the account credit. The document is processed in memory and not stored.

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

Input Schema

NameRequiredDescriptionDefault
xmlNoThe invoice XML (XRechnung as UBL 2.1 Invoice or CreditNote, or UN/CEFACT CII). Give either xml or pdf_base64.
pdf_base64NoA ZUGFeRD / Factur-X PDF as Base64; its embedded invoice XML is checked. Give either xml or pdf_base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing billing behavior (charged per document from account credit) and data handling (processed in memory, not stored), which the readOnlyHint=false/destructiveHint=false flags cannot convey. It also sketches the return payload (valid/invalid plus findings with rule id, location, rule text). It could still say more about failure modes or validation duration, but the key operational traits are covered.

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?

Front-loads the core action and validator, then covers output shape, cost and data retention in two further sentences with no filler. Slightly dense running prose rather than separated clauses, but every sentence earns its place.

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

Completeness4/5

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

For a two-parameter validation tool with no output schema, the description supplies the report structure (verdict plus findings with rule id/location/text), pricing and retention policy. Only the mutual-exclusivity of the two inputs and error behavior are left to the schema and inference.

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%, so both xml and pdf_base64 already carry format, size and mutual-exclusivity guidance in the schema. The description restates the accepted formats (UBL 2.1, CII, ZUGFeRD) but adds no new syntax or constraint detail beyond the schema, so the 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 (validates) and resource (e-invoice) plus the accepted formats (XRechnung UBL/CII XML and ZUGFeRD/Factur-X PDF) and the exact validator used (KoSIT). This is clearly distinguishable from create_einvoice by the 'validates' verb, though it never explicitly contrasts itself with 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?

Usage is only implied: the mention of two input formats and a per-document charge hints at when this tool is appropriate versus create_einvoice or get_job_result. There is no explicit when-to-use or when-not-to-use statement, and the xml-vs-pdf_base64 choice is only made explicit in the schema.

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