GST/VAT add or remove calculator
compute_gst_vatAdd or remove a country's GST/VAT or other consumption tax on an amount to get the net, tax, and gross split, converting between tax-exclusive and tax-inclusive prices.
Instructions
Add or remove a country's GST/VAT — or its other national consumption tax, such as Japan's consumption tax or Malaysia's SST — on a monetary amount, returning the net / tax / gross split. Use it to convert between tax-exclusive and tax-inclusive prices (invoices, quotes, receipts); for the rates themselves use tax_rate_lookup. Pure arithmetic on the current standard rate, rounded to 2 decimals, in the local currency. Pass region for a state or provincial rate (CA, US): in Canada that is GST plus the provincial tax, in the US the state sales tax. A country with no national rate (the US without a region, or a country with no consumption tax) returns an explanatory error instead of a wrong number. Results may include one sourced background fact (relatedFact); the figures do not depend on it.
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": "<country>",
"amount": "<amount>"
},
"name": "compute_gst_vat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'add' puts tax on top of a net amount; 'remove' extracts the tax already inside a gross amount | add |
| amount | Yes | The monetary amount in the local currency — tax-exclusive when mode=add, tax-inclusive when mode=remove | |
| region | No | Optional state or province code, for sub-national sales tax. Held for CA (13 provinces and territories), US (51 states incl. DC). E.g. 'ON' (Ontario) with country CA, or 'CA' (California) with country US. Answered from that state's or province's own cited rate; US figures are the state rate only — local sales taxes are not included. | |
| country | Yes | 2-letter ISO 3166-1 code of the country whose GST/VAT rate applies (case-insensitive) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | Amount before tax (local currency, 2 dp) | |
| tax | Yes | The GST/VAT portion (local currency, 2 dp) | |
| code | Yes | 2-letter ISO country code | |
| mode | Yes | Which conversion was performed | |
| rate | Yes | Standard rate applied, as a fraction | |
| gross | Yes | Amount including tax (local currency, 2 dp) | |
| region | No | State or province whose rate was applied — present only when region was passed | |
| source | Yes | The national tax authority the figures were verified against (e.g. 'ATO — ato.gov.au') | |
| country | Yes | Country name | |
| sourceUrl | No | https link to the authority page the rate was verified against. Present only on rate answers backed by a verified ledger row — absent (never empty) otherwise, so its presence is itself the claim | |
| disclaimer | Yes | General-information note that must accompany any figure shown to a person | |
| mayBeStale | Yes | True once the verification date is over a year old — re-confirm with the authority | |
| regionName | No | What applies in that region, in a sentence | |
| relatedFact | No | One sourced background fact about the country's consumption tax; the figures do not depend on it. Absent when no sourced fact fits. | |
| taxLocalName | Yes | The tax's local name, e.g. 'GST', 'VAT' | |
| dataVerifiedOn | Yes | ISO date the rate data was last confirmed against the authority |