discount_calculator
Calculate final price after applying a percentage or fixed discount to an original price.
Instructions
Calculate the final price after a discount (percentage or fixed amount).
Parameters:
original — Original price.
discount — Discount amount or percentage.
type — 'percent' (default) or 'fixed'.
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": {
"original": "<original>",
"discount": "<discount>"
},
"name": "discount_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original | Yes | ||
| discount | Yes | ||
| type | No | percent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |