Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

wsAmendOrder

Modify an existing unfilled or partially filled order on Bybit via WebSocket, updating parameters such as price, quantity, or trigger conditions.

Instructions

Amend (modify) an existing unfilled or partially filled order via WebSocket on Bybit V5 unified account.

IMPORTANT: This tool places/modifies real orders via WebSocket. Confirm symbol, side, quantity, and price with the user before calling. Response is an acknowledgment only; use subscribeOrder or REST endpoints to verify actual order status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYesProduct type.
symbolYesTrading pair or contract name.
orderIdNoSystem-generated order ID. Either `orderId` or `orderLinkId` is required.
orderLinkIdNoUser-defined order ID. Either `orderId` or `orderLinkId` is required.
orderIvNoImplied volatility (option only). Pass actual value, e.g., "0.1" for 10%.
triggerPriceNoModified trigger price for conditional orders.
qtyNoModified order quantity. Omit if unchanged.
priceNoModified order price. Omit if unchanged.
tpslModeNoTP/SL mode. `Full`=entire position (market only), `Partial`=partial position (supports limit)
takeProfitNoModified take-profit price. Pass "0" to cancel existing TP.
stopLossNoModified stop-loss price. Pass "0" to cancel existing SL.
tpTriggerByNoTake-profit trigger price type. Required if modifying TP without prior setting.
slTriggerByNoStop-loss trigger price type. Required if modifying SL without prior setting.
triggerByNoTrigger price type for conditional orders.
tpLimitPriceNoLimit price after take-profit triggers (Partial mode only).
slLimitPriceNoLimit price after stop-loss triggers (Partial mode only).
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that the tool places real orders, the response is only an acknowledgment, and that external verification (subscribeOrder or REST) is needed. It does not mention idempotency, failure modes, or whether modifications are atomic, leaving some gaps.

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?

The description is concise with four sentences, the first presenting the purpose and the second a bold warning. It is front-loaded with key information, though it could be structured more formally with bullet points or sections.

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?

Given the tool's complexity (16 parameters, 2 required), no output schema, and high schema coverage, the description adequately covers the tool's operation and verification needs. It lacks error handling details or common constraints, but is largely sufficient.

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?

The input schema covers all 16 parameters with descriptions, achieving 100% coverage. The description adds minimal value beyond the schema, only reiterating that symbol, side, quantity, and price need user confirmation. Baseline score of 3 applies.

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 action (amend/modify), the resource (existing unfilled or partially filled order), and the context (via WebSocket on Bybit V5 unified account). It effectively distinguishes this tool from its siblings like createOrder and cancelOrder.

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

Usage Guidelines3/5

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

The description includes an important warning to confirm order details with the user before calling, but it does not explicitly state when to use this tool versus alternatives like the non-WebSocket amendOrder or when not to use it. It mentions subscribeOrder for verification but lacks comparative guidance.

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