doordash_group_order_status
View group order items broken down by person using the group cart ID to track contributions and status.
Instructions
View a group order's items broken down by person.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | Group cart ID |
Implementation Reference
- src/tools/index.ts:860-894 (handler)The tool 'doordash_group_order_status' is registered and implemented in src/tools/index.ts. It calls the 'getGroupCart' method from the group API to fetch order details and formats them as a markdown string.
"doordash_group_order_status", { description: "View a group order's items broken down by person.", inputSchema: { cart_id: z.string().describe("Group cart ID"), }, }, ({ cart_id }) => wrap(async () => { const gc = await api.group.getGroupCart(cart_id); const lines = [ "# Group Order\n", `Share link: ${gc.shareUrl}`, `Subtotal: $${(gc.subtotal / 100).toFixed(2)}\n`, ]; if (gc.members.length === 0) { lines.push("No one has added items yet."); } for (const member of gc.members) { const status = member.isFinalized ? "finalized" : "still adding"; lines.push(`## ${member.name} (${status})`); for (const item of member.items) { const price = item.price ? `$${(item.price / 100).toFixed(2)}` : ""; lines.push( `- ${item.quantity}x ${item.name} ${price} (item ID: ${item.id})`, ); } lines.push(""); } return ok(lines.join("\n")); }), );