Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

追加保证金

build_add_margin
Read-only

在不扩大持仓名义规模(sizeDeltaUsd = 0)的前提下,向已有仓位追加保证金以降低实际杠杆、拉远强平价(兼容 USDC 本位与 Meme 币本位,且不影响亏损挖矿加权持仓时间)。(自动附带可直接执行的 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_add_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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the output auto-includes runnable baw contract-call preview/execute commands, approval defaults to exact-amount rather than unlimited, and the action does not affect loss-mining weighted holding time. It stops short of saying what happens on a nonexistent position or how errors surface.

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 sentences, front-loaded with the core purpose and constraint before the compatibility and output details. The nested parentheticals are dense and slightly hard to parse, but every clause carries information.

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 mutation-builder with no output schema, the description covers purpose, constraint, asset-base compatibility, side effects on holding-time weighting, and the shape of the returned commands. Gaps are minor: no precondition or failure-mode guidance for a position that does not exist.

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 100%, so the baseline is 3. The description reinforces the USDC-本位 vs Meme 币本位 distinction and the exact-amount approval default, but it does not add syntax or format guidance beyond what the schema already documents for collateralUsdc, collateralTokens, and the market/account/side fields.

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 (向已有仓位追加保证金) plus the mechanical constraint sizeDeltaUsd = 0 and the intended effects (降低实际杠杆、拉远强平价). This distinguishes it cleanly from build_remove_margin and build_open_position without needing to open a schema.

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?

The sizeDeltaUsd = 0 framing implicitly tells the agent when to use it (reduce leverage / move liquidation price without growing notional) and when not to (any size increase). However, it never names the sibling to use instead for increasing size or removing margin, so the routing is inferred 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