Skip to main content
Glama
xrechnung-mcp

xrechnung-mcp

by Ozycore

validate_xrechnung

Validates XRechnung, ZUGFeRD, or Factur-X invoice XML against EN 16931 and returns structured, severity-graded issue reports for offline compliance checks.

Instructions

Validate an XRechnung or ZUGFeRD/Factur-X XML document against the EN 16931 core model. Returns a structured report with severity-graded issues. Stateless, offline.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "xml": "<xml>"
    },
    "name": "validate_xrechnung"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesThe XRechnung/ZUGFeRD invoice XML. UBL or UN/CEFACT CII flavors both accepted. Must be a non-empty string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description does carry some burden and does disclose useful traits: stateless, offline execution and a severity-graded structured report. However, it omits key behaviors for a validator, such as whether it fails fast or reports all issues, how invalid/non-XML input is handled, and whether the result is machine-readable beyond 'structured report'. Adequate but with clear gaps.

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?

Three short sentences with the core purpose front-loaded and no redundant or filler wording. Every sentence contributes either purpose, output shape, or execution characteristics.

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 single-parameter tool with full schema coverage and no output schema, the definition covers what it does, what standard it checks, and roughly what comes back. Minor gaps remain around severity levels and error behavior, but an agent has enough to invoke it correctly.

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% and the schema already documents the accepted UBL and UN/CEFACT CII flavors and the non-empty constraint. The description reinforces the accepted dialects (XRechnung, ZUGFeRD/Factur-X) but adds no syntax or format detail beyond the schema, so it sits just above the baseline 3.

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?

States a specific verb (Validate) and resource (XRechnung/ZUGFeRD/Factur-X XML document) plus the conformance target (EN 16931 core model). That is clearly distinct from extraction or parsing siblings, and an agent can tell what it produces without opening the schema.

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 nature of a validator suggests 'check before further processing', but the description never says when to prefer this over extract_zugferd or parse_invoice, nor does it state preconditions or exclusions. No explicit when/when-not guidance is present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools