Skip to main content
Glama
xrechnung-mcp

xrechnung-mcp

by Ozycore

parse_invoice

Extract header, totals, line items, and tax breakdown from XRechnung or ZUGFeRD/Factur-X XML into a normalized invoice structure without running full validation.

Instructions

Parse an XRechnung or ZUGFeRD/Factur-X XML document into a normalized invoice structure with header, totals, line items, and tax breakdown. Useful for extracting invoice data without the full validation cycle.

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

Input Schema

NameRequiredDescriptionDefault
xmlYesThe XRechnung/ZUGFeRD invoice XML. UBL or UN/CEFACT CII flavors both accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does communicate the key behavioral trait that this is a non-validating parse ('without the full validation cycle') and describes the returned structure, but it is silent on failure behavior for malformed or non-conforming XML, and on whether partial data is returned for schema violations.

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?

Two sentences, front-loaded with the action and target, followed by the payoff clause. No filler or redundant restatement of the tool name, though the second sentence is somewhat vague in its value framing ('useful for').

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 no output schema, the description usefully enumerates the returned structure (header, totals, line items, tax breakdown), which an agent needs in order to decide the tool is sufficient. What remains uncovered is error semantics for invalid documents, which matters for a parser with no annotations backing it up.

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 the single parameter documents both the accepted input and that UBL and UN/CEFACT CII flavors are allowed, so the baseline is 3. The description restates the accepted formats without adding syntax, encoding, or size guidance beyond what the schema already provides.

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 (parse) and a specific resource (XRechnung or ZUGFeRD/Factur-X XML document), plus the shape of the result: header, totals, line items, tax breakdown. The phrase 'without the full validation cycle' implicitly separates it from validate_xrechnung, but the relationship to extract_zugferd is left unstated, so it does not fully differentiate from all siblings.

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 clause 'useful for extracting invoice data without the full validation cycle' implies the right context (extraction rather than validation) and hints that a validation path exists elsewhere. However, it never explicitly names when to prefer validate_xrechnung or extract_zugferd, nor does it state what to do if the document is invalid, leaving usage guidance implied rather than stated.

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