doordash_convenience_search
Search for grocery, alcohol, pharmacy, and other convenience store items using a DoorDash store ID and search query to find specific products.
Instructions
Search for items within a convenience store (grocery, alcohol, pharmacy, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | DoorDash store ID | |
| query | Yes | Search query (e.g. 'chicken breast', 'la croix') |
Implementation Reference
- src/tools/index.ts:223-251 (handler)Registration and handler implementation for the `doordash_convenience_search` tool, which searches for items within a convenience store.
"doordash_convenience_search", { description: "Search for items within a convenience store (grocery, alcohol, pharmacy, etc.).", inputSchema: { store_id: z.string().describe("DoorDash store ID"), query: z .string() .describe("Search query (e.g. 'chicken breast', 'la croix')"), }, }, ({ store_id, query }) => wrap(async () => { const items = await api.menu.searchConvenience(store_id, query); if (items.length === 0) return err(`No items found for "${query}" at this store.`); const lines = [`Search results for "${query}":\n`]; for (const item of items) { lines.push( `- **${item.name}** ${item.price} (${item.subtext}) [ID: ${item.id}]`, ); } lines.push( "\n*Use doordash_add_to_cart with store_id and item_id to add items.*", ); return ok(lines.join("\n")); }), );