apply_promo_code
Apply a promotional code to an order amount to calculate the discounted total.
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": {
"promo_code": "<promo_code>",
"order_amount": "<order_amount>"
},
"name": "apply_promo_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promo_code | Yes | ||
| order_amount | Yes |