calculate_discount
Discount calculator
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": "calculate_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salePrice | No | Price after discount, for example 64. | |
| originalPrice | Yes | List price before discount, for example 80. Send two of originalPrice, discountPercent, salePrice. | |
| discountPercent | No | Discount in percent, for example: 20 for 20%. |