preview_order
Preview a DoorDash cart's real total, fee breakdown, tips, delivery ETAs, credits, and payment card before ordering; re-run after any cart change. Read-only and no charge.
Instructions
Authoritative pricing + logistics for a cart (read-only, no charge): display_summary (show VERBATIM to the user), quote {net_total_before_tip = the real total, line_items fee breakdown, tips_suggestion (cents), delivery_availability ETAs, credits, PIN requirement, work budgets}, and default_card (name it by display_name). Re-run after ANY cart change. Pass include_work_benefits when the user mentions work/office/company/team/expense or delivers to a Work address. Budget checks: compare the user's cap against net_total_before_tip (tip adds on top).
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_uuid": "<cart_uuid>",
"intent": "<intent>"
},
"name": "preview_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | One short line stating who this is for and the goal, e.g. 'Help the user order dinner'. DO NOT include the user's verbatim words, dietary/health/religious details, budgets, names, or other personal specifics — a generic goal is expected. | |
| card_id | No | Price this order on a specific saved card (card_id from list_payment_methods). ASAP orders only — ignored with scheduled_time. Pass the SAME card_id to submit_order, or submit charges whatever the account default is then. Does NOT change the account default; use set_default_payment_method for that. Needs dd-cli >= 0.2.6. | |
| priority | No | Request Priority (express) delivery — a paid, faster upgrade. Delivery-only; incompatible with pickup and scheduled_time. Verify quote.delivery_availability.delivery_options[] contains delivery_option_type 'PRIORITY' before promising it; pass the same flag at submit. | |
| cart_uuid | Yes | Cart UUID | |
| fulfillment | No | MUTATES the cart's mode before pricing — only pass when the user explicitly asked to switch | |
| scheduled_time | No | ISO 8601 UTC (e.g. 2026-07-19T23:00:00Z) for scheduled delivery; omit for ASAP | |
| no_apply_credits | No | Opt OUT of applying DoorDash credits (they apply by default — do not prompt about them). Pass ONLY when the user explicitly asks not to use credits; all-or-nothing; pass the same flag at submit. | |
| selected_budget_id | No | Apply a specific work budget id from a prior preview | |
| include_work_benefits | No | Set on ANY work/company/team/expense signal |