Discount
discountA single percentage discount: the amount off and the final price.
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>",
"discountPct": "<discountPct>"
},
"name": "discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Original price. | |
| discountPct | Yes | Discount in percent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discount | No | Amount off. | |
| finalPrice | No | Final price. |