validate_erechnung
Validates ZUGFeRD PDF/A-3b and XRechnung XML against EN 16931, KoSIT BR-DE rules, and PDF/A compliance, returning errors and warnings to diagnose statutory violations.
Instructions
Validate a ZUGFeRD PDF/A-3b or XRechnung 3.0 XML against official EN 16931 XSD, KoSIT German Business Rules (BR-DE-*), and veraPDF ISO 19005-3. Use to check statutory compliance and diagnose rule violations; use parse_erechnung instead when you want to extract invoice fields and line items. Returns JSON with valid (boolean), profile, format, pdfaCompliant, errors[], and warnings[] (each with rule_id, field, message, and human_hint).
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": "validate_erechnung"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional original filename ending in .pdf or .xml to assist content-type detection. | |
| fileBase64 | No | Base64-encoded ZUGFeRD PDF/A-3b or XRechnung XML file to validate (provide either fileBase64 or xmlContent). | |
| xmlContent | No | Raw UTF-8 XRechnung or Factur-X XML string to validate (alternative to fileBase64). |