Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

减少保证金

build_remove_margin
Read-only

在不缩减持仓名义规模(sizeDeltaUsd = 0)的前提下,从已有仓位提取多余保证金(兼容 USDC 本位与 Meme 币本位;仅可提取超出最高杠杆要求且满足链上最低 2 USD 保底线门槛的自有本金,未实现浮盈需平仓提取)。(自动附带可直接执行的 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>"
    },
    "name": "build_remove_margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYeslong 做多,short 做空
agentNoagent 专用通道:填 agent 自己的钱包地址后,交易由 agent 用自己的私钥直接签名发送,不用用户逐笔确认(用户需先用 build_agent_authorize 授权这个地址)。不填则由用户钱包签名
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
accountYes用户钱包地址(交易的签名人和收款人)
collateralUsdcNo提取的保证金金额(USDC 本位填 USDC 数量;Meme 币本位可按美元估算自动换算代币数,或直接传 collateralTokens)
collateralTokensNo仅 Meme 币本位永续市场使用:直接指定提取的 Meme 代币数量

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say readOnlyHint=true and destructiveHint=false, so the description must carry the behavior, and it does: it discloses the size-neutral mechanism, both collateral regimes (USDC and Meme-token based), the withdrawable-limit and minimum-floor rules, and that a runnable baw contract-call preview/execute payload is attached with exact-amount approval by default. It stops short of stating that building does not itself broadcast the transaction, which would be the one remaining clarification for a transaction builder.

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 operation is front-loaded in the main clause before the two parentheticals, and every clause carries non-redundant information (invariant, collateral compatibility, eligibility limits, attached commands). No filler or restatement of the title.

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 6-parameter transaction builder with no output schema, the definition covers eligibility, collateral handling, and what the caller receives (executable preview/execute commands). Missing only an explicit note that this preparation step performs no on-chain write and how the agent-only path differs in signing flow.

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 coverage is 100%, so per-parameter meaning is already documented in the schema. The description adds constraint semantics that apply to the values (excess-only, leverage cap, 2 USD floor), which is genuinely useful but does not go beyond what the schema describes about collateralUsdc vs collateralTokens.

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?

States a specific verb and resource (提取多余保证金 from 已有仓位) plus the defining invariant sizeDeltaUsd = 0, so the agent knows this is not a close and not a size change. It implicitly distinguishes itself from build_add_margin (deposit direction) and build_close_position (the only route to unrealized PnL), so the intended operation is unambiguous.

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?

Gives concrete applicability conditions: only self-owned principal above the max-leverage requirement and above the on-chain 2 USD floor can be withdrawn, and unrealized PnL must be realized by closing instead. It does not name build_add_margin or build_close_position as the alternative tools, so routing is inferable rather than explicit.

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