calculate_vat_breakdown_latam
Calculate VAT/IVA breakdown for invoice line items in Latin American countries, grouping by tax rate and computing totals per country.
Instructions
Calculates a VAT/IVA breakdown for invoice line items in a given Latin American country, grouping amounts by tax rate and computing totals. For Brazil, returns ICMS, PIS, COFINS breakdown. For Mexico, returns IVA breakdown. For Chile/Argentina/Colombia, returns IVA breakdown. Returns { country, lines_summary, tax_breakdown, subtotal, total_tax, total }. Each line item requires { description, quantity, unit_price, tax_rate }.
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>",
"lines": "<lines>"
},
"name": "calculate_vat_breakdown_latam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | Two-letter ISO country code. Example: 'BR', 'MX', 'CL' | |
| lines | Yes | Array of invoice line items | |
| currency | No | Currency code. Example: 'BRL', 'MXN', 'CLP'. Defaults to country currency. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | ||
| currency | Yes | ||
| lines_summary | Yes | ||
| tax_breakdown | Yes | ||
| subtotal | Yes | ||
| total_tax | Yes | ||
| total | Yes |