Get Discounted Price
getDiscountedPriceCalculates the final price of a product after applying a specific discount percentage. Input product ID and discount percent to get the discounted price.
Instructions
Calculates a product's price after applying a discount percentage (0-100).
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": {
"id": "<id>",
"discountPercent": "<discountPercent>"
},
"name": "getDiscountedPrice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| discountPercent | Yes |