set_tip
Set the tip amount on a Grubhub cart by providing the cart ID and tip amount in dollars, so checkout reflects the intended gratuity.
Instructions
Set the tip amount on the cart.
Args: cart_id: The cart ID tip_amount: Tip amount in dollars
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>",
"tip_amount": "<tip_amount>"
},
"name": "set_tip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | ||
| tip_amount | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |