xrechnung_zugferd_cross_compiler
[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
| Name | Required | Description | Default |
|---|---|---|---|
| buyerName | Yes | Legal name of customer or German contracting authority | |
| invoiceId | Yes | Invoice number / Rechnungsnummer | |
| currencyCode | No | Currency (default: EUR) | |
| issueDateIso | Yes | Invoice issue date (YYYY-MM-DD) | |
| targetProfile | No | ZUGFeRD / Factur-X target profile | |
| financialSummary | Yes | Invoice financial and tax breakdown | |
| sellerVatOrTaxNumber | Yes | Seller German VAT ID (USt-IdNr. DE...) or Steuernummer | |
| isGermanPublicSectorB2G | No | Whether the recipient is a German public authority requiring strict Leitweg-ID validation | |
| leitwegIdOrBuyerReference | Yes | German Leitweg-ID routing code (e.g. 991-12345-67) or buyer reference |