Skip to main content
Glama
nirholas

Binance.US MCP Server

by nirholas

binance_us_cancel_replace

Cancel an existing order and place a new order atomically to modify trading parameters on Binance.US.

Instructions

Cancel an existing order and place a new order on the same symbol atomically. This is useful for modifying order parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesTrading pair symbol (e.g., BTCUSD)
sideYesOrder side: BUY or SELL
typeYesOrder type for the new order
cancelReplaceModeYesSTOP_ON_FAILURE: Don't place new order if cancel fails. ALLOW_FAILURE: Place new order even if cancel fails.
cancelOrderIdNoOrder ID to cancel. Either this or cancelOrigClientOrderId required.
cancelOrigClientOrderIdNoClient order ID to cancel. Either this or cancelOrderId required.
timeInForceNoTime in force for new order
quantityNoQuantity for new order
quoteOrderQtyNoQuote order quantity for new order
priceNoPrice for new order
cancelNewClientOrderIdNoClient order ID for the cancel
newClientOrderIdNoClient order ID for the new order
stopPriceNoStop price for new order
trailingDeltaNoTrailing delta for new order
icebergQtyNoIceberg quantity for new order
newOrderRespTypeNoResponse type for new order
selfTradePreventionModeNoSelf-trade prevention mode
cancelRestrictionsNoCancel restrictions
recvWindowNoReceive window in milliseconds (max 60000)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the atomic nature of the operation and its utility for modification, but fails to disclose critical behavioral traits such as authentication requirements, rate limits, error handling (e.g., what happens if the cancel or new order fails), or the response format. For a complex trading tool with 19 parameters and no annotations, this is a significant gap in transparency.

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 extremely concise and front-loaded, consisting of only two sentences that directly state the tool's purpose and utility. Every sentence earns its place by clearly conveying the core functionality without any redundant or verbose language. It is appropriately sized for the complexity of the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high complexity (19 parameters, trading operation), lack of annotations, and no output schema, the description is incomplete. It adequately explains the purpose but fails to provide necessary context such as behavioral details (e.g., side effects, error handling), usage constraints, or output expectations. For a tool of this nature, more comprehensive information is needed to guide an AI agent effectively.

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 schema description coverage is 100%, meaning all parameters are documented in the input schema with descriptions and enums. The description does not add any additional semantic information about parameters beyond what the schema provides. According to the rules, with high schema coverage (>80%), the baseline score is 3, as the description does not need to compensate but also does not enhance parameter understanding.

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?

The description clearly states the tool's purpose: 'Cancel an existing order and place a new order on the same symbol atomically. This is useful for modifying order parameters.' It specifies the verb (cancel and place) and resource (order), but does not explicitly differentiate from sibling tools like 'binance_us_cancel_order' or 'binance_us_new_order', which handle these actions separately. The atomic nature is highlighted, but sibling distinction is implicit.

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 provides implied usage guidance by stating 'This is useful for modifying order parameters,' suggesting it should be used when updating an existing order rather than creating a new one from scratch. However, it does not explicitly mention when to use this tool versus alternatives like 'binance_us_cancel_order' followed by 'binance_us_new_order', nor does it specify prerequisites or exclusions. The guidance is helpful but not comprehensive.

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/nirholas/Binance-US-MCP'

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