Skip to main content
Glama

German XRechnung 3.0 & ZUGFeRD 2.2 Factur-X Compiler

xrechnung_zugferd_cross_compiler
Read-onlyIdempotent

[German XRechnung 3.0 & ZUGFeRD 2.2 / Factur-X cross-compiler & validator. Pure calculation, read-only, side-effect free]. Compiles and validates electronic invoices conforming to German national standards (KoSIT XRechnung 3.0 and hybrid PDF/A-3 ZUGFeRD 2.2), verifying Leitweg-ID routing codes and German B2B mandate compliance under the Wachstumschancengesetz. Usage: Use this tool to prepare invoices for German federal/state public sector (B2G) and German domestic B2B transactions. Returns: JSON object with { invoiceId: string, targetFormat: string, profileApplied: string, isLeitwegIdValid: boolean, isValidForGermanB2G: boolean, isGermanB2bMandateCompliant: boolean, xmlMetadataSnippet: string, taxAssessment: object }.

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": {
      "invoiceId": "<invoiceId>",
      "issueDateIso": "<issueDateIso>",
      "leitwegIdOrBuyerReference": "<leitwegIdOrBuyerReference>",
      "sellerVatOrTaxNumber": "<sellerVatOrTaxNumber>",
      "buyerName": "<buyerName>",
      "financialSummary": "<financialSummary>"
    },
    "name": "xrechnung_zugferd_cross_compiler"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerNameYesLegal name of customer or German contracting authority
invoiceIdYesInvoice number / Rechnungsnummer
currencyCodeNoCurrency (default: EUR)
issueDateIsoYesInvoice issue date (YYYY-MM-DD)
targetProfileNoZUGFeRD / Factur-X target profile
financialSummaryYesInvoice financial and tax breakdown
sellerVatOrTaxNumberYesSeller German VAT ID (USt-IdNr. DE...) or Steuernummer
isGermanPublicSectorB2GNoWhether the recipient is a German public authority requiring strict Leitweg-ID validation
leitwegIdOrBuyerReferenceYesGerman Leitweg-ID routing code (e.g. 991-12345-67) or buyer reference

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description's 'pure calculation, read-only, side-effect free' largely restates that. It does add real behavioral content beyond annotations: the specific validations performed (Leitweg-ID routing codes, German B2B mandate under the Wachstumschancengesetz) and the shape of the result. It says nothing about failure behavior for non-conforming input or rate/limits, which is the main remaining gap.

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?

Well front-loaded and labelled with 'Usage:' and 'Returns:' sections, so an agent can skim to the part it needs. The bracketed 'pure calculation, read-only, side-effect free' clause duplicates both the title and the annotations and could be dropped without loss.

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 return object's fields (isLeitwegIdValid, isValidForGermanB2G, isGermanB2bMandateCompliant, taxAssessment), which is exactly what the missing output schema would have provided. For a 9-parameter tool with a nested financial object it covers purpose, scope and returns adequately, though it leaves the taxAssessment object's contents unspecified.

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 every parameter, including the nested financialSummary fields and the tax-category enum, is already documented in the schema; the baseline of 3 applies. The description contextualizes what the Leitweg-ID and tax-category inputs are used for, but adds no syntax, format, or defaulting detail beyond the schema.

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?

Names a specific verb pair (compiles and validates) and a precise resource (German XRechnung 3.0 and ZUGFeRD 2.2 / Factur-X electronic invoices), including the standards bodies involved (KoSIT, hybrid PDF/A-3). No sibling tool in the catalog handles invoice compilation, so differentiation is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

An explicit 'Usage' line names the two target scenarios: German federal/state public sector (B2G) and German domestic B2B transactions. It stops short of stating when NOT to use it (e.g. non-German or non-electronic invoicing) or naming any alternative, so it is clear context without exclusions.

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