doordash_delete_cart
Remove a DoorDash shopping cart by providing its cart ID to clear unwanted items or cancel pending orders.
Instructions
Delete a cart.
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": {
"cart_id": "<cart_id>"
},
"name": "doordash_delete_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | Cart ID to delete |
Implementation Reference
- src/tools/index.ts:560-563 (handler)The handler for the doordash_delete_cart tool, which calls api.cart.deleteCart to remove a cart.
wrap(async () => { await api.cart.deleteCart(cart_id); return ok(`Cart ${cart_id} deleted.`); }), - src/tools/index.ts:553-564 (registration)Registration of the doordash_delete_cart tool with its schema and handler.
server.registerTool( "doordash_delete_cart", { description: "Delete a cart.", inputSchema: { cart_id: z.string().describe("Cart ID to delete") }, }, ({ cart_id }) => wrap(async () => { await api.cart.deleteCart(cart_id); return ok(`Cart ${cart_id} deleted.`); }), );