calculate_discounted_price
Calculates the final price after applying a discount percentage to the original price, rounded to 2 decimal places. (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_discounted_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original_price | No | number, required, the original price before discount | |
| discount_percentage | No | number, required, the discount percentage (e.g., 20 for 20% off) |