Skip to main content
Glama

cancel_order

Idempotent

Cancel an outstanding order on a supported venue using its order ID. Returns a cancellation receipt and handles already-filled or non-existent orders gracefully.

Instructions

Cancel an outstanding order by its venue order_id. Signed inside the enclave just like place_order. Returns the cancellation receipt from the venue. Idempotent: cancelling a non-existent / already-filled order returns ok=false with a reason from the venue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
venueYesVenue identifier. Must match an entry returned by list_venues — any other value will be rejected by the gateway.
order_idYesVenue-native order identifier returned by place_order.
symbolNoVenue-native symbol — REQUIRED for binance + okx cancels (their REST APIs need the symbol on the cancel route). Optional for venues that derive it from order_id alone.
Behavior5/5

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

The description discloses behavioral traits beyond annotations: it explains the return value (cancellation receipt), confirms idempotency behavior with ok=false and venue reason, and notes the enclave signing. These details add value over the idempotentHint annotation.

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?

The description is three sentences long, each serving a distinct purpose: stating the action, providing context, and explaining idempotency. No wasted words, and key information is front-loaded.

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?

The description explains return value (cancellation receipt) and idempotent behavior, which is appropriate for a tool without an output schema. However, it does not detail the receipt's structure, which might be needed for full completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the baseline is 3, but the description significantly enriches parameter understanding: it links venue to list_venues, order_id to place_order, and clarifies symbol requirement per venue. This goes well beyond the schema's descriptions.

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 clearly states the tool cancels an outstanding order by its venue order_id, which is a specific verb+resource combination. It distinguishes itself from sibling tools like place_order and get_account.

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?

The description provides usage context by mentioning 'Signed inside the enclave just like place_order' and describes idempotent behavior including handling of non-existent orders. However, it does not explicitly state when not to use this tool or name alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/namixai/signer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server