search_restaurants
Search nearby restaurants by free-text query from a saved or specified address and return distance, delivery estimate, rating, and pickup availability for choosing where to order.
Instructions
Search nearby restaurants by free-text query. Searches from the user's default saved address unless address_id or lat/lng is given. Returns store_id, name, distance, delivery_time estimate, rating, and pickup availability (offers_pickup, asap/scheduled_pickup_availability, next_open_time_asap_pickup_ms — use these before promising pickup). Stores with is_link_out=true cannot be ordered through this agent. Restaurant-focused — use find_stores for grocery/retail/pharmacy/pets/alcohol. Filters (dashpass_only, price_tier, distance_preference, max_eta_minutes) narrow server-side — prefer them over asking for 30 results and filtering by hand.
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": {
"query": "<query>",
"intent": "<intent>"
},
"name": "search_restaurants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Optional latitude override (pass with lng, and without address_id) | |
| lng | No | Optional longitude override (pass with lat, and without address_id) | |
| limit | No | Max results (default 8) | |
| query | Yes | Search text, e.g. 'grilled chicken bowls' | |
| intent | Yes | One short line stating who this is for and the goal, e.g. 'Help the user order dinner'. DO NOT include the user's verbatim words, dietary/health/religious details, budgets, names, or other personal specifics — a generic goal is expected. | |
| address_id | No | Search from a saved address (list_addresses). Mutually exclusive with lat/lng; omit for the default address | |
| price_tier | No | Price tiers to include, 1 (cheapest) to 4 — e.g. [1,2] for 'somewhere cheap' | |
| dashpass_only | No | Only DashPass stores. Pass when the user says they have DashPass and wants to use it | |
| max_eta_minutes | No | Drop stores whose estimated delivery exceeds this many minutes — use when the user is in a hurry | |
| distance_preference | No | How far to look: nearby for 'right around here', broad to widen a thin result set |