validate_invoice_schema
Check an invoice JSON for mandatory fields required by EU VAT law for a given European country. Returns validation status, missing and present fields, and warnings.
Instructions
Validates whether an invoice JSON object contains all mandatory fields required for a valid VAT invoice in a given European country, based on EU VAT Directive 2006/112/EC and local implementations. Returns { valid: boolean, country, missing_fields: [], present_fields: [], warnings: [] }. Use when building invoice generation pipelines, pre-submission validation, or compliance checks in agent workflows. Information is reference only — not legal advice.
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": {
"country_code": "<country_code>",
"invoice": "<invoice>"
},
"name": "validate_invoice_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | Two-letter ISO country code. Example: 'PT', 'DE', 'IT' | |
| invoice | Yes | Invoice object to validate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| country | No | ||
| missing_fields | No | ||
| present_fields | No | ||
| warnings | No | ||
| disclaimer | No |