Skip to main content
Glama

EuroCompliance Studio & Ultrathink Edge MCP (36 Tools)

validate_einvoice_xml

Read-onlyIdempotent

Validate XRechnung 3.0.2 / ZUGFeRD / Factur-X EN 16931 XML and export DATEV EXTF CSV + EPC GiroCode.

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

Input Schema

NameRequiredDescriptionDefault
xmlNoRaw UBL 2.1 or CII XML invoice document

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description usefully adds that the call also emits DATEV EXTF CSV and an EPC GiroCode, which is behavior not visible in annotations. It omits how validation failures surface (error list vs. boolean) and whether exports are returned inline or written to a file.

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?

A single front-loaded sentence with no filler; every token is either a supported standard, an action verb, or an output artifact.

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?

With one optional input and no output schema, the definition should explain what comes back; it names the CSV and GiroCode outputs but leaves the validation verdict format unspecified. Still, for a one-parameter tool with annotations covering safety, this is close to sufficient.

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?

Single parameter with 100% schema description coverage ("Raw UBL 2.1 or CII XML invoice document"), so the schema already carries the meaning. The description adds standard-version context (XRechnung 3.0.2, ZUGFeRD, Factur-X) that partly complements the UBL/CII syntax note, but adds nothing about encoding, size limits, or passing a file path vs. raw content.

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 ("Validate") against named resources (XRechnung 3.0.2 / ZUGFeRD / Factur-X EN 16931 XML) and discloses the produced artifacts (DATEV EXTF CSV + EPC GiroCode). The validate/generate distinction is clear against the sibling generate_einvoice_xml, though no sibling is named explicitly.

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?

The enumeration of supported standards implicitly scopes when the tool applies (EN 16931 e-invoices in UBL/CII form), but there is no explicit when-to-use, when-not-to-use, or prerequisite statement. An agent must infer that this is post-generation validation rather than document creation.

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.