Skip to main content
Glama

Confita

Cancel an order request

cancel_order
DestructiveIdempotent

For customers: withdraw one of the buyer's own orders while it is still a request the seller has not answered. Use it once the buyer has confirmed which order; it takes the number as they say it. The shop is told. An order the seller has confirmed is refused: the buyer asks the seller.

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": "<order>",
      "request_id": "<request_id>"
    },
    "name": "cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYesThe order by id (ord_...) or number ("#12").
request_idYesUnique per call; the same id again returns the first result.

Output Schema

NameRequiredDescriptionDefault
nextNo
errorNo
orderNo
choicesNo
outcomeNo
timezoneNo
cancelledNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true and openWorldHint=true, so the safety profile is covered. The description adds context annotations cannot: the shop is notified as a side effect, and confirmed orders are rejected at call time. It does not discuss permissions or what happens to any downstream state beyond notification, but that is a modest gap.

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?

Short and front-loaded: audience, action, state precondition, then the refusal case. Every sentence carries information and none are filler, though the clipped phrasing ("The shop is told.") is terser than it needs to be for clarity.

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?

An output schema exists, so return values need not be described, and annotations cover the destructive/idempotent profile. The description supplies the remaining agent-critical facts: eligibility state, the notification side effect, and the refusal path. Only the permission model for who may cancel is left implicit.

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 coverage is 100%, so both parameters are already documented, including the id/number duality and the idempotent request_id. The description adds only the mild gloss "it takes the number as they say it," hinting at lenient number formatting without specifying syntax. Baseline 3 is right when the schema carries the load.

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 (withdraw) and resource (one of the buyer's own orders) with a precise state scope: only while it is still an unanswered request. An agent can tell this is not a general order mutation. It stops short of naming a sibling such as cancel_pending, so the differentiation is inferential rather than explicit.

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

Usage Guidelines4/5

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

"Use it once the buyer has confirmed which order" gives a clear trigger condition, and "An order the seller has confirmed is refused: the buyer asks the seller" gives an explicit when-not plus the alternative path. No sibling tool is named as an alternative, which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources