Discount calculator
discount_calculatorSale price after a percentage discount and, given unit cost and units normally sold, how many extra sales the discount needs to keep the same profit.
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": {
"price": "<price>",
"discount_percent": "<discount_percent>"
},
"name": "discount_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Normal price. | |
| units | No | Optional: units sold at the normal price. | |
| unit_cost | No | Optional: what one unit costs you. | |
| discount_percent | Yes | Discount in percent. |