calculate_tax
Calculate VAT amount and total price for a given country and price, including the applicable VAT rate.
Instructions
Calculate the VAT amount and total price for a given country and price.
Args: country: Country name (case-insensitive). price: Price excluding VAT. Must be positive.
Returns: A dict with country, price, vat_rate, vat_amount, and total_price. Returns a dict with an "error" key if the country is unknown or input is invalid.
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>",
"price": "<price>"
},
"name": "calculate_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| country | Yes |