Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

cancelOrder

Cancel a single open order by its order ID or custom link ID. Specify category and symbol to target spot, linear, inverse, or option orders.

Instructions

Cancel a single open order by orderId or orderLinkId.

  • Either orderId or orderLinkId must be provided

  • System prioritises orderId when both are provided but conflict

  • For spot orders, orderFilter can target specific order types

  • Response is acknowledgment only; confirm via WebSocket order stream

Agent hint: Use this endpoint to cancel a single open order by its orderId or orderLinkId. TradFi: use category=spot for xStock tokens, category=linear for equity/commodity perpetuals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
symbolYes
orderIdNo
orderLinkIdNo
orderFilterNoOrder
Behavior4/5

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

Discloses important behavior: response is acknowledgment only, confirmation via WebSocket stream. No annotations exist, so description carries full burden. Does not mention rate limits or auth, but these are typical for a cancel endpoint.

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?

Reasonably concise with bullet points and hints. Some redundancy between agent hint and bullet points, but overall well-structured and 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?

Covers key aspects: action, required parameters, behavior, and special case (TradFi). Lacks error handling details, but for a simple cancel tool this is sufficient given no output schema.

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

Parameters4/5

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

With 0% schema description coverage, the description adds significant meaning: explains the relationship between orderId and orderLinkId, priority rule, and orderFilter usage. Does not detail category or symbol but provides enough context.

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 a single open order by orderId or orderLinkId. It differentiates from siblings like batchCancelOrders and cancelAllOrders by specifying 'single open 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?

Provides clear when-to-use: cancel a single open order. Includes constraints (must provide orderId or orderLinkId, priority rule, orderFilter for spot) and a TradFi hint for category. Lacks explicit alternatives but siblings imply batch/available.

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/bybit-exchange/trading-mcp'

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