Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

开仓

build_open_position
Read-only

生成开仓交易(支持 USDC 本位与 Meme 币本位永续,市价或限价),可同时挂止盈、止损并可选绑定邀请码 referralCode,一笔交易完成。返回预计成交价、可接受价、执行费和待签 steps(含精确额度授权)。(自动附带可直接执行的 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>",
      "collateralUsdc": "<collateralUsdc>",
      "leverage": "<leverage>",
      "slippagePct": "<slippagePct>"
    },
    "name": "build_open_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYeslong 做多,short 做空
agentNoagent 专用通道:填 agent 自己的钱包地址后,交易由 agent 用自己的私钥直接签名发送,不用用户逐笔确认(用户需先用 build_agent_authorize 授权这个地址)。不填则由用户钱包签名
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
accountYes用户钱包地址(交易的签名人和收款人)
leverageYes杠杆倍数,不超过该市场最大杠杆
stopLossNo止损触发价
limitPriceNo限价开仓的触发价;不填为市价
takeProfitNo止盈触发价
slippagePctYes滑点百分数,默认 0.3(即 0.3%)
referralCodeNo可选推广邀请码(可读短码如 alice 或 0x 开头的 32 字节十六进制;子账户模式下忽略)
collateralUsdcYes保证金美元金额(USDC 本位市场为 USDC 金额,扣掉买卖价差后不少于 10;币本位市场按当前链上中间价折算为对应 Meme 代币枚数)
collateralTokensNo仅币本位永续市场可选:直接按 Meme 代币枚数覆盖保证金数量

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 description's job is to explain the builder behavior — and it does: it returns 预计成交价、可接受价、执行费 and unsigned steps with exact-amount approvals, and auto-appends baw contract-call preview/execute commands. That clarifies this is transaction construction, not execution, and discloses the default approval mode; only auth/rate-limit details are absent.

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?

Content is front-loaded correctly — capability and market/order scope first, return payload second, defaults in a trailing parenthetical. It is dense but every clause carries information; the nested parentheses make it slightly harder to scan than a short bulleted phrasing would.

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 12 parameters, six required, and no output schema, the description compensates by enumerating the return payload (expected price, acceptable price, fee, signable steps) and the bundled approval behavior. Missing only the signing prerequisite narrative that the agent parameter carries, so it is close to but not fully complete for a transaction builder.

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 every parameter including agent, market, collateralUsdc/collateralTokens and slippagePct is already documented in the schema; the description adds only light framing (止盈、止损 together, 可选绑定 referralCode, 市价 vs 限价). This is the expected baseline when the schema carries the load.

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 opens with a specific verb plus resource: 生成开仓交易, and immediately scopes it (USDC 本位与 Meme 币本位永续, 市价或限价). It further names the optional TP/SL and referralCode coverage, which lets an agent tell it apart from build_close_position or build_set_tp_sl without opening the schema.

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: the tool is for opening a position, and 一笔交易完成 hints that TP/SL can be bundled instead of chained with build_set_tp_sl. There is no explicit when-to-use / when-not-to-use statement, no mention of prerequisites such as build_agent_authorize or the approval steps beyond 含精确额度授权.

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