doordash_orders
Retrieve recent DoorDash order history to track purchases and review past deliveries. Specify a limit to control how many orders are returned.
Instructions
Get recent DoorDash order history
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "doordash_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of orders (default 5) |
Implementation Reference
- src/tools/index.ts:678-689 (registration)Registration of the doordash_orders tool.
server.registerTool( "doordash_orders", { description: "Get recent DoorDash order history", inputSchema: { limit: z .number() .optional() .default(5) .describe("Number of orders (default 5)"), }, }, - src/tools/index.ts:690-705 (handler)Handler logic for doordash_orders, which retrieves orders using api.orders.getRecentOrders.
({ limit }) => wrap(async () => { const orders = await api.orders.getRecentOrders(limit); if (orders.length === 0) return ok("No recent orders found."); const lines = ["# Recent Orders\n"]; for (const order of orders) { lines.push(`**${order.storeName}** — ${order.total}`); if (order.date) lines.push(` Date: ${order.date}`); if (order.status) lines.push(` Status: ${order.status}`); if (order.items) lines.push(` Items: ${order.items}`); lines.push(""); } return ok(lines.join("\n")); }), );