Skip to main content
Glama

StandingBids

Cancel a buy order

cancel_buy_order
DestructiveIdempotent

Cancel a buy order and remove it from the order book. This cannot be undone; a new order would lose its place in the queue. Only call this when the person asks to cancel. Requires the order_id and access_code returned when the order was placed.

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>",
      "access_code": "<access_code>"
    },
    "name": "cancel_buy_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order_id returned by place_buy_order.
access_codeYesThe access_code returned by place_buy_order.

Output Schema

NameRequiredDescriptionDefault
statusYes
productYes
deadlineYes
order_idYes
confirm_byYes
manage_urlYesPrivate page where the person can see and cancel the order.
confirm_urlYesPresent while status is "draft": the page where the person confirms the order.
membershipsYesWarehouse clubs the person belongs to: their prices count at the member price.
close_reasonYes
max_price_usdYes
missed_offersYes
pending_offerYes
authorized_onlyYes
awaiting_email_clickYesTrue when the person entered an email address but has not yet clicked the verification link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the description's "cannot be undone" is partly redundant. It does add genuine context the annotations do not: the concrete consequence (losing queue position) and the credential requirement (access_code from placement).

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?

Three short sentences, front-loaded with the action and consequence, followed by the call gate and prerequisites. No filler or restatement of the title.

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 explained, and the description covers the safety consequence and both required credentials. It leaves open what happens if the order is already filled or already cancelled, a plausible edge case for a destructive cancel.

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% and both properties already carry descriptions naming place_buy_order as the source of the values. The description repeats that provenance without adding format, validation, or edge-case semantics, so the schema is doing the work.

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?

Specific verb and resource: "Cancel a buy order and remove it from the order book." It implicitly separates itself from place_buy_order by noting a replacement order loses queue position, but never names the sibling or explicitly contrasts with get_buy_order/place_buy_order.

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?

"Only call this when the person asks to cancel" is a clear, explicit gating condition that tells the agent not to cancel proactively or speculatively. It stops short of naming alternative tools to use when the user merely wants order status, which would have made it 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