Discount Price Calculator
discount_percent_offCompute the final checkout total after stacked percentage discounts, a fixed coupon, and a tax assumption. Sequential discounts are NOT additive.
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": {
"originalPrice": "<originalPrice>"
},
"name": "discount_percent_off"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon | No | Fixed coupon applied after all discounts | |
| taxPct | No | Tax percent | |
| discount1 | No | First discount percent (0-100) | |
| discount2 | No | Second discount percent (0-100) | |
| originalPrice | Yes | Original price |