Skip to main content
Glama
iuk-ink

Binance MCP Server

创建条件单

trading_place_algo
Destructive

Create conditional orders for Binance futures, including stop loss, take profit, and trailing stop. Set trigger prices, callback rates, and reduce-only or close-position options to automate risk management.

Instructions

创建条件委托(止损/止盈/追踪止损)。type 决定必填参数:

  • STOP_MARKET / TAKE_PROFIT_MARKET:需 triggerPrice

  • STOP / TAKE_PROFIT:需 triggerPrice + price(限价委托价)

  • TRAILING_STOP_MARKET:需 callbackRate(百分比,0.1~10),可选 activatePrice 触发价方向规则(违反将报 -2021 Order would immediately trigger):

  • 止损类(STOP*):BUY 须高于最新价,SELL 须低于最新价

  • 止盈类(TAKE_PROFIT*):BUY 须低于最新价,SELL 须高于最新价 closePosition=true 时触发后全平仓位,且要求该 symbol 已有对应方向持仓 (无持仓时报错 GTE can only be used with open positions),不可传 quantity / reduceOnly。 持仓模式:双向(Hedge)必须传 positionSide(LONG/SHORT),单向省略;可用 trading_position_mode 查询。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYes
typeYes
priceNo限价委托价,仅 STOP / TAKE_PROFIT 类型需要
symbolYes
quantityNo
reduceOnlyNo
timeInForceNo
workingTypeNo
callbackRateNo追踪止损回撤百分比(0.1~10,1=1%),仅 TRAILING_STOP_MARKET 需要
clientAlgoIdNo
positionSideNo
priceProtectNo
triggerPriceNo触发价。止损类 BUY 须高于现价 / SELL 须低于现价,止盈类相反
activatePriceNo追踪止损激活价,未达到前不开始追踪
closePositionNo触发后全平该合约仓位;为 true 时不可传 quantity / reduceOnly

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed15 schema fields changedv3.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / activatePrice
      Added value: +{
      +  "description": "追踪止损激活价,未达到前不开始追踪",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / callbackRate
      Added value: +{
      +  "description": "追踪止损回撤百分比(0.1~10,1=1%),仅 TRAILING_STOP_MARKET 需要",
      +  "maximum": 10,
      +  "minimum": 0.1,
      +  "type": "number"
      +}
    • addedInput schema / properties / clientAlgoId
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / closePosition
      Added value: +{
      +  "description": "触发后全平该合约仓位;为 true 时不可传 quantity / reduceOnly",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / positionSide / description
      Removed value: -"持仓方向(双向持仓模式时需指定)"
    • changedInput schema / properties / positionSide / enum
      Previous value: -[
      -  "BOTH",
      -  "LONG",
      -  "SHORT"
      -]New value: +[
      +  "LONG",
      +  "SHORT"
      +]
    • addedInput schema / properties / price / description
      Added value: +"限价委托价,仅 STOP / TAKE_PROFIT 类型需要"
    • addedInput schema / properties / priceProtect
      Added value: +{
      +  "type": "boolean"
      +}
    • removedInput schema / properties / side / description
      Removed value: -"方向 BUY=买入 / SELL=卖出"
    • removedInput schema / properties / symbol / description
      Removed value: -"交易对符号 如 BTCUSDT"
    • addedInput schema / properties / timeInForce
      Added value: +{
      +  "enum": [
      +    "GTC",
      +    "IOC",
      +    "FOK"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / triggerPrice / description
      Previous value: -"触发价格"New value: +"触发价。止损类 BUY 须高于现价 / SELL 须低于现价,止盈类相反"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "LIMIT",
      -  "MARKET",
      -  "STOP",
      -  "STOP_MARKET",
      -  "TAKE_PROFIT",
      -  "TAKE_PROFIT_MARKET",
      -  "TRAILING_STOP_MARKET"
      -]New value: +[
      +  "STOP_MARKET",
      +  "TAKE_PROFIT_MARKET",
      +  "STOP",
      +  "TAKE_PROFIT",
      +  "TRAILING_STOP_MARKET"
      +]
    • addedInput schema / properties / workingType
      Added value: +{
      +  "enum": [
      +    "MARK_PRICE",
      +    "CONTRACT_PRICE"
      +  ],
      +  "type": "string"
      +}
  2. Addedv2.0.3

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark the tool as non-read-only and destructive, but the description adds important behavioral context: trigger-direction constraints with the -2021 error, the requirement that closePosition implies existing position and shuts off quantity/reduceOnly, and hedge-mode positionSide requirements. This is exactly what an agent needs to predict side effects.

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?

Every sentence delivers a new usable rule; the typ-to-parameter mapping is fronted, choes have third constraints in short clauses, and there is no filler or schema repetition.

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?

For a 15-parameter, no-output-schema tool, it covers key decision and edge cases: what differs between order types, closePosition behaviors, direction constraints, and hedging mode. The missing return shape and unexplained option semantics for some optional fields keeps it from perfect completeness.

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?

Schema coverage is low (33%), and the description significantly compensates by explaining the parameter dependencies, required fields for each order type, the trigger-price direction rules, and closePosition/quantity conflict. A few optional params (timeInForce, workingType, priceProtect, clientAlgoId) are not meaningfully expanded on, so it is not a full 5.

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 a specific operation: creating conditional orders for stop-loss, take-profit, and trailing-stop scenarios. It lists the supported order types, so an agent can distinguish this tool from ordinary order placement siblings such as trading_place_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?

It gives explicit type-driven usage rules: which params are required for STOP_MARKET vs STOP vs TRAILING, and special rules for closePosition and positionSide in hedge mode. It does not explicitly mention 'use trading_place_order instead for immediate orders', so it stops short of a perfect when-not-to-use statement.

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

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/iuk-ink/binance-mcp-server'

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