calculate_discount
Calculates the discounted price after applying a percentage discount to the original price. Returns both discount amount and final price. (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original_price | No | number, required, original price before discount, currency units, no default | |
| discount_percentage | No | number, required, discount percentage, plain number (20 = 20%), no default |