apply_promo_code
Applies a promotion code to a Grubhub cart, reducing the order total before checkout. Provide the cart ID and promo code to validate and attach the discount.
Instructions
Apply a promotion code to the cart.
Args: cart_id: The cart ID promo_code: The promotion code to apply
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": {
"cart_id": "<cart_id>",
"promo_code": "<promo_code>"
},
"name": "apply_promo_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | ||
| promo_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |