parse_erechnung
Parses German E-Rechnung PDFs and XML to extract embedded ZUGFeRD, Factur-X, or XRechnung data deterministically, with validated fallback extraction for flat PDFs.
Instructions
Smart Hybrid German E-Rechnung parser (Empfangspflicht): extracts embedded ZUGFeRD/Factur-X/XRechnung XML deterministically in ~20ms (source='NATIVE_XML'), or falls back to guarded extraction on flat PDFs with math_verified and iban_valid checks.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "parse_erechnung"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Original filename ending in .pdf or .xml | |
| fileBase64 | No | Base64-encoded ZUGFeRD PDF, legacy PDF, or XML | |
| xmlContent | No | Raw UTF-8 XRechnung / Factur-X XML string |