doordash_search
Search DoorDash restaurants by name, cuisine, or food type to find available dining options for delivery or pickup.
Instructions
Search for restaurants on DoorDash by name, cuisine, or food type
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (e.g. 'pizza', 'thai food', 'McDonalds') |
Implementation Reference
- src/tools/index.ts:139-164 (handler)The handler logic for 'doordash_search' which uses the 'api.search.searchStores' function to query and return a list of restaurants.
server.registerTool( "doordash_search", { description: "Search for restaurants on DoorDash by name, cuisine, or food type", inputSchema: { query: z .string() .describe("Search query (e.g. 'pizza', 'thai food', 'McDonalds')"), }, }, ({ query }) => wrap(async () => { const stores = await api.search.searchStores(query); if (stores.length === 0) return ok(`No restaurants found for "${query}".`); const text = stores .map( (s, i) => `${i + 1}. **${s.name}** — ${s.cuisine} (${s.distance}) [store ID: ${s.storeId}]`, ) .join("\n"); return ok(`Search results for "${query}":\n\n${text}`); }), );