vat
Split an amount into net, tax, and gross using a percentage rate, with half-away-from-zero rounding; choose net or gross mode to define whether the amount excludes or includes tax.
Instructions
Split an amount into net, VAT and gross at a rate, rounding VAT half away from zero. mode 'net': the amount excludes VAT; 'gross': it includes VAT.
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>",
"rate_pct": "<rate_pct>"
},
"name": "vat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| amount | Yes | ||
| decimals | No | ||
| rate_pct | Yes |