Skip to main content
Glama

confirm_order

Idempotent

Accept a placed iFood merchant order to prevent automatic cancellation when confirmation is required. Use the order ID to transition the order from PLACED to confirmed.

Instructions

Confirm/accept an order (first transition after PLACED; orders auto-cancel if not confirmed in time).

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": "confirm_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnly=false, destructive=false, idempotent=true), and the description adds a genuinely new behavioral fact: failure to confirm results in auto-cancellation. It omits error conditions and any permission requirements, keeping it below a 5.

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?

A single front-loaded sentence with a parenthetical that earns its place by conveying both the lifecycle position and the timeout risk. No filler.

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?

For a one-parameter mutation with annotations covering safety and idempotency, the description supplies the key operational risk. Minor gaps remain around error/response behavior, but no output schema exists and the annotations carry the read/write profile.

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?

Only one parameter, order_id, and the schema covers it at 100%, so the description needs to add nothing further. The description provides no extra detail on the identifier's format or source, so the baseline 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?

Names a specific verb (confirm/accept) and resource (order), and places it in the order lifecycle with 'first transition after PLACED'. It does not explicitly distinguish itself from siblings such as cancel_order or dispatch_order, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is implied via the lifecycle position ('first transition after PLACED') and the consequence of not acting (auto-cancel). However, no alternative is named and there is no explicit when-not-to-use guidance, leaving the agent to infer routing.

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