Skip to main content
Glama

submit_order

Destructive

Place a DoorDash order by charging the user's payment method after preview and confirmation. Requires user to type 'yes' to proceed.

Instructions

Place the order — charges the user's real payment method. HARD GATE: the terminal asks the user to type 'yes'; a decline returns declined_by_user. Call ONLY after: (1) preview shown, (2) tip explicitly confirmed (delivery; pickup = 0 without asking), (3) payment method named to the user, (4) the user clearly said to place it. NOT idempotent — never retry without checking get_order_status first. Report success only when final_status.status == 'successful'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
intentYesOne 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.
team_idNoWork benefits: quote.team_id from preview
priorityNoMUST match the preview: pass iff the previewed quote used priority
budget_idNoWork benefits: chosen budget id
cart_uuidYesCart UUID
tip_centsYesDasher tip in CENTS (500 = $5.00). 0 only on explicit decline or pickup.
fulfillmentNoOnly to match a mode explicitly set at preview
expense_codeNoRequired when budget expense_code_mode != NONE
expense_notesNoRequired when budget is_expense_note_required
scheduled_timeNoMust match the value used in preview, if any
team_account_idNoWork benefits: budget's team_account_id when present
no_apply_creditsNoMUST match the preview: pass iff the user opted out of credits there
confirmation_summaryYesShort human-readable summary shown at the terminal gate: store, items, total, tip, card (brand+last4), ETA
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses destructive behavior (charges real payment), hard gate requiring user confirmation, and non-idempotency. Adds context beyond annotations, no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise, front-loaded with the main action, and well-structured with clear bullet-point-like conditions. Every sentence adds value without fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers behavioral context, preconditions, and success condition. No output schema, but description partly addresses return values. Could be more explicit about the response structure, but sufficient for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage with detailed descriptions for all 13 parameters. The description adds no additional parameter semantics beyond the schema, so baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb 'Place the order' and resource 'order', with specifics about charging the user's real payment method. Distinguishes from sibling tools like preview_order and get_order_status as the final submission step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly lists four preconditions for calling, states it is not idempotent and to never retry without checking get_order_status first, and provides clear when-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CydVilla/peckish'

If you have feedback or need assistance with the MCP directory API, please join our Discord server