grubhub_timepicker
Fetch a Grubhub restaurant's full future orderable time slots up to 7 days ahead for delivery or pickup. Use it to build a date-and-time picker without resolving time zones.
Instructions
Get one Grubhub restaurant's future orderable time-slot calendar. Returns every future delivery or pickup time slot Grubhub will accept an order for, up to 7 days ahead. This is what powers the site's own "schedule my order" picker: /grubhub/availability tells you whether a restaurant is orderable right now plus one "next" time, while this returns the full future slot calendar a caller would need to build an actual date-and-time picker. Slots are grouped by date and given as full timestamps carrying the restaurant's real UTC offset for that instant, so a caller never has to resolve daylight-saving transitions themselves. Requesting location_mode=DELIVERY returns delivery slots only; PICKUP returns pickup slots only -- the upstream only computes one side per call.
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": {
"restaurant_id": "<restaurant_id>",
"latitude": "<latitude>",
"longitude": "<longitude>",
"location_mode": "<location_mode>"
},
"name": "grubhub_timepicker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days ahead to fetch, 1-7 (default 7) | |
| latitude | Yes | Diner location latitude | |
| longitude | Yes | Diner location longitude | |
| location_mode | Yes | Which slot grid to return | |
| restaurant_id | Yes | Grubhub restaurant id |