Skip to main content
Glama

dispatch_order

Idempotent

Marks a delivery order as dispatched through iFood, optionally specifying merchant-managed delivery; use it to update order status after handoff.

Instructions

Mark a DELIVERY order as dispatched.

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": {
      "order_id": "<order_id>"
    },
    "name": "dispatch_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder ID
delivered_byNoSet to 'MERCHANT' only for merchant-managed delivery; omit for iFood logistics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety and repeat-call behavior are covered by structured data. The description adds essentially nothing beyond them: no state-transition detail, no mention of what happens if the order is already dispatched or in the wrong status, no failure modes.

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

Conciseness4/5

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

A single short sentence with the scope qualifier front-loaded and no wasted words. It is efficient rather than padded, though the terseness leaves out useful information.

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

Completeness3/5

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

With only two well-documented parameters, annotations covering safety/idempotency, and no output schema, the definition is minimally callable. It is still thin on the state machine around dispatch (valid source statuses, effect on order state, error behavior for non-delivery orders).

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 description coverage is 100%, so the schema already documents order_id and the delivered_by MERCHANT enum with its iFood-logistics caveat. The description adds no additional parameter meaning beyond the word "DELIVERY", so the baseline of 3 applies.

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

Purpose4/5

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

States a specific verb and resource ("Mark ... as dispatched") and scopes it to DELIVERY orders, which helps separate it from pickup-flow siblings. It does not, however, explicitly differentiate itself from adjacent lifecycle tools like ready_to_pickup or start_preparation.

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

Usage Guidelines2/5

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

The capitalized "DELIVERY" implies the tool applies only to delivery orders, which is weak implicit guidance. There is no statement of when to call it versus ready_to_pickup, start_preparation, confirm_order, or cancel_order, and no preconditions given.

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