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
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The XRechnung/ZUGFeRD invoice XML. UBL or UN/CEFACT CII flavors both accepted. |