validate_invoice_schema_latam
Validate an invoice JSON against mandatory electronic invoice fields for Brazil, Mexico, Chile, Argentina, and Colombia. Returns missing and present fields along with compliance warnings.
Instructions
Validates whether an invoice JSON object contains the mandatory fields required for a valid electronic invoice in a given Latin American country, based on official tax authority requirements (SEFAZ, SAT, SII, AFIP, DIAN). 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_latam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | Two-letter ISO country code. Example: 'BR', 'MX', 'CL', 'AR', 'CO' | |
| 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 |