Calculate Chilean IVA (19%)
calculate_ivaCompute IVA, net, and total amounts in whole Chilean pesos from a net amount or an IVA-inclusive total using exact integer rounding.
Instructions
Computes net, IVA and total in whole pesos. base='neto' means the amount is the net price; base='total' means the amount already includes IVA. Exact integer arithmetic (round half up).
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": {
"amount": "<amount>",
"base": "<base>"
},
"name": "calculate_iva"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| amount | Yes | Amount in CLP, whole pesos |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iva | Yes | ||
| neto | Yes | ||
| total | Yes |