Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

设置止盈止损

build_set_tp_sl
Read-only

为已有仓位设置止盈和 / 或止损:同一笔交易里先撤掉该仓位原有的止盈止损,再按新价格挂单(仓位平掉时另一张自动撤)。(自动附带可直接执行的 baw contract-call preview/execute 命令,且默认精确额度授权)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account": "<account>",
      "market": "<market>",
      "side": "<side>",
      "slippagePct": "<slippagePct>"
    },
    "name": "build_set_tp_sl"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYeslong 做多,short 做空
agentNoagent 专用通道:填 agent 自己的钱包地址后,交易由 agent 用自己的私钥直接签名发送,不用用户逐笔确认(用户需先用 build_agent_authorize 授权这个地址)。不填则由用户钱包签名
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
accountYes用户钱包地址(交易的签名人和收款人)
stopLossNo
takeProfitNo
slippagePctYes滑点百分数,默认 0.3(即 0.3%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, the description discloses cancel-then-replace sequencing within one transaction, the OCO-style rule that the other order auto-cancels when the position closes, and that a ready-to-run preview/execute command is attached with exact-amount approval by default. That is genuine behavioral value. The only tension is that 'readOnlyHint: true' coexists with cancel-and-place-order semantics; this is defensible for a build-only tool that emits an unsigned transaction, so it is not treated as a contradiction.

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?

Two compact clauses with the core action front-loaded and details parenthesized, so an agent can stop reading after the first clause. The second parenthetical about contract-call commands is somewhat dense but still earns its place by explaining the return payload.

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?

With no output schema, the description carries the return-format burden itself and does so by noting the attached preview/execute command. Sequencing, auto-cancel behavior, and approval defaults are covered; what is missing is the position-required precondition and the trigger-price semantics for the two optional order parameters.

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?

Schema description coverage is 71%, so the baseline is 3. The description does add meaning by making clear that takeProfit and stopLoss are alternatives ('和/或') and that new prices replace old ones, but it says nothing about side, market, account, slippagePct, or how trigger prices relate to mark/last price — several of which have no schema description at all.

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 states a specific verb and resource ('为已有仓位设置止盈和/或止损') and scopes it to existing positions, which separates it from the open/close/add-margin siblings. It stops short of naming an explicit alternative, but the object and scope are unambiguous.

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?

Usage is implied rather than stated: '为已有仓位' establishes the prerequisite of an open position, and '止盈和/或止损' implies either or both can be supplied. There is no explicit when-not guidance, no mention of what to do for positions with no existing TP/SL, and no named alternative such as build_close_position.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources