Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

授权 agent 交易

build_agent_authorize
Read-only

agent 专用通道:生成用户主钱包要签的授权交易,把 agent 的地址设为「只能交易、不能提币」的子账户。限定操作次数、有效天数(默认 3 天,最长 30 天)、可动用的精确 USDC 保证金上限,可选 gas 预算(合约每次按实际花费从用户 WBNB 报销给 agent)。签完后 agent 在开仓 / 平仓 / 止盈止损 / 撤单工具里带上 agent 参数,就能用自己的私钥直接下单。(自动附带可直接执行的 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>",
      "agent": "<agent>",
      "maxActions": "<maxActions>",
      "days": "<days>",
      "usdcBudget": "<usdcBudget>",
      "gasBudgetBnb": "<gasBudgetBnb>",
      "topUpPerActionBnb": "<topUpPerActionBnb>",
      "seedAgentBnb": "<seedAgentBnb>"
    },
    "name": "build_agent_authorize"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYes有效天数(默认 3 天,最长 30 天),到期后自动失效
agentYesagent 自己的钱包地址(agent 本地生成的新私钥对应的地址,不要用用户主钱包)
accountYes用户钱包地址(交易的签名人和收款人)
maxActionsYes本次授权可用的操作次数(下单、改单、撤单各算一次;开仓带止盈止损算 3 次)
usdcBudgetYesagent 最多能动用的 USDC 保证金(设为 Router 的精确 USDC 授权额度,与网页下单共用)
gasBudgetBnbYesgas 预算:包成 WBNB 授权给合约,每次操作后按实际花费报销给 agent;0 表示不报销,agent 自己出 gas
seedAgentBnbYesagent 钱包 BNB 少于这个数时,顺带转给它这么多,用来发第一笔交易;0 表示不转
topUpPerActionBnbYes单次操作最多报销多少 BNB

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?

Beyond the annotations, the description discloses the actual permission being granted (trade but not withdraw), expiry auto-invalidation, action-count and USDC budget caps, the WBNB gas reimbursement mechanic, and the default precise-allowance behavior. It does not clarify what happens if the tool is called again for an already-authorized agent (overwrite vs stack), which matters given idempotentHint=false. The readOnlyHint=true annotation is not contradicted, since the tool constructs a signing payload rather than broadcasting it.

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?

The purpose and the key constraint (trade-only, no withdrawal) are front-loaded, then limits follow. It is a dense single block, but nearly every clause carries operational information; a small amount of the gas-reimbursement detail could be trimmed since the schema covers it.

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 high-stakes eight-parameter grant tool with no output schema, the description explains what is produced (a signing payload plus attached preview/execute commands) and how the grant is consumed afterwards. Missing is the re-authorization/overwrite behavior and any warning about the risk of granting an allowance.

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 all eight parameters are already documented with defaults, min/max, and meaning. The prose restates the day and budget limits and explains the gas-reimbursement intent, but adds little semantic detail the schema does not already carry.

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 names a concrete verb and resource: it builds a user-main-wallet-signed authorization transaction that turns the agent address into a trade-only, no-withdraw sub-account. The grant semantics (as opposed to revocation) are unmistakable, and it names the downstream tools where the resulting `agent` parameter is used.

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 clear when-to-use context — before the agent can place orders with its own private key — and the procedural follow-up (sign, then pass `agent` into open/close/TP-SL/cancel tools). It does not explicitly point at the alternative or say when not to use it (for example, the revoke sibling), so it stops short of full routing guidance.

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