Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

cancelSpreadOrder

Cancel a spread trading order by providing either the order ID or your custom order link ID. Note that cancellation is processed asynchronously.

Instructions

Cancel a single spread trading order by its order ID or custom order link ID.

Usage Scenarios:

  • Cancel an open limit order that has not yet been fully filled.

  • Use either orderId (system-assigned) or orderLinkId (user-defined) to identify the order.

Important:

  • Either orderId or orderLinkId must be provided.

  • The response is an acknowledgement only. The cancellation is processed asynchronously. Monitor the WebSocket stream for final order status confirmation.

Agent hint: POST endpoint requiring authentication. Either orderId or orderLinkId is required. Response is asynchronous -- the acknowledgement does not guarantee cancellation. Use the WebSocket stream to confirm final status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdNo
orderLinkIdNo
Behavior5/5

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

Despite no annotations, the description fully discloses behavioral traits: response is acknowledgement only, cancellation is async, need to monitor WebSocket, and requires authentication. Nothing contradictory.

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?

Well-structured with sections and bullet points. Front-loaded with main action. Every sentence adds value without redundancy.

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?

Provides sufficient context for a cancel operation. Explains async response and WebSocket confirmation. Could mention related spread order tools, but not necessary for core functionality.

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 coverage, the description adds meaning by explaining that orderId is system-assigned and orderLinkId is user-defined. Also clarifies that either must be provided, which is not enforced in schema.

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 spread trading order using order ID or order link ID. It uses specific verb and resource and distinguishes from sibling tools like cancelAllSpreadOrders.

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 usage scenarios (cancel open limit order not fully filled) and identifies required parameters. Mentions asynchronous nature and WebSocket monitoring but does not explicitly exclude other cancel tools.

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