calculate_saudi_vat
Compute exact Saudi VAT at 15% or a custom rate from a subtotal using Decimal halala ROUND_HALF_UP arithmetic for accurate ZATCA-compliant tax calculations.
Instructions
Compute exact Saudi 15% VAT (or custom VAT percentage) using Decimal ROUND_HALF_UP halala arithmetic.
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": {
"subtotal": "<subtotal>"
},
"name": "calculate_saudi_vat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subtotal | Yes | Subtotal excluding VAT, e.g. '1000.00' | |
| vat_rate | No | VAT percentage, default '15' |