Skip to main content
Glama

Отменить заказ

cancel_order
Destructive

Cancels a Dodo Pizza order after explicit human confirmation; use the order UUID from order status, and note that orders already sent to the kitchen or courier may require a phone call.

Instructions

Отменяет заказ. ТРЕБУЕТ подтверждения человека. Возможно не всегда: как только заказ ушёл на кухню или курьеру, отмена через сайт закрыта — тогда остаётся звонок в пиццерию. order_uuid бери из order_status.

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_uuid": "<order_uuid>",
      "confirmed_by_human": "<confirmed_by_human>"
    },
    "name": "cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_uuidYesUUID заказа из order_status
confirmed_by_humanYestrue только если пользователь явно попросил отменить

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false and non-idempotency, so the safety profile is covered. The description still adds non-obvious behavior: a time-window after which the operation is impossible and a mandatory human-confirmation gate. It does not say what an agent should do if the cancellation is rejected by the backend (e.g., surface the phone-call fallback vs. retry), which keeps it below 5.

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?

Four short sentences, front-loaded with the action and the confirmation requirement before the caveat. The whole thing earns its place, though the closing note on order_uuid is redundant with the schema wording.

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 two-parameter destructive mutation with no output schema, the description covers the essentials: the action, the human gate, the failure window, and identifier sourcing. It leaves the rejection behavior and any post-cancel effects (refund, cart state) unstated, but nothing critical to correct invocation is missing.

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% and both parameters carry their own descriptions, including the order_uuid provenance and the meaning of confirmed_by_human. The description's 'order_uuid бери из order_status' largely restates the schema, so it adds little beyond baseline.

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?

The description opens with a specific verb and resource (cancels an order) and immediately qualifies the scope with a real-world constraint. It is unambiguous and impossible to confuse with place_order, compose_order or order_status.

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?

It states the precondition for use (human confirmation), an explicit when-not-to-use case (order already sent to the kitchen or courier — the site path is closed and only a phone call remains), and where to source the identifier. That is rare, actionable routing guidance.

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