Check invoice totals
check_invoice_totalsVerifies Chilean invoice totals: checks IVA equals 19% of net (±1 peso rounding) and that net + exempt + IVA match the total, returning any inconsistencies.
Instructions
Verifies that IVA is 19% of the net amount (±1 peso rounding) and that net + exempt + IVA equals the total. Returns the list of problems; consistent=false is a normal result.
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": {
"neto": "<neto>",
"iva": "<iva>",
"total": "<total>"
},
"name": "check_invoice_totals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iva | Yes | ||
| neto | Yes | ||
| total | Yes | ||
| exento | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| problems | Yes | ||
| consistent | Yes | ||
| expected_iva | No | ||
| expected_total | No |