Exact VAT / Sales Tax Calculator
calculate_vatAdd VAT to a net price or extract the exact net base and VAT amount from a VAT-inclusive gross price rounded cleanly to 2 decimal places.
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>",
"vat_rate_pct": "<vat_rate_pct>"
},
"name": "calculate_vat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "add" adds VAT to a net amount; "remove" extracts net and VAT from a gross VAT-inclusive amount (default "add"). | |
| amount | Yes | Input monetary amount (>= 0). | |
| currency | No | Currency code (default "EUR"). | |
| vat_rate_pct | Yes | VAT/tax rate percentage (e.g., 21 for Spain, 20 for UK/France, 19 for Germany, 23 for Portugal). |