Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

生成精确额度 USDC 授权(防风控拦截)

baw_build_approve
Read-only

为 Binance Agentic Wallet 生成对 Perp Router 的精确额度 USDC approve 交易与 baw contract-call 命令(自动匹配链上 6 位或 18 位 USDC 精度)。绝不使用 maxUint256 无限授权,避免触发币安 App 高危风控拦截;传 usdcAmount=0 可清零撤销授权。

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>",
      "usdcAmount": "<usdcAmount>"
    },
    "name": "baw_build_approve"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYes用户的 Binance Agentic Wallet 地址(通过 `baw wallet info --json` 获取)
usdcAmountYes精确授权的 USDC 预算(如 200;填 0 为清零撤销授权)

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, and the description is consistent with that because it only *builds* a transaction and a command rather than broadcasting anything. Beyond the annotations it adds real behavior: auto-detection of 6- vs 18-decimal on-chain USDC precision, the deliberate refusal to emit maxUint256 approvals to avoid Binance App risk-control blocking, and the revoke semantics of usdcAmount=0. It does not state whether the generated approval is time- or amount-bounded beyond the exact figure, which is the main remaining gap.

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?

Front-loaded with the action and the resource, then the anti-maxUint256 constraint and the revoke shortcut in a tight clause. Every sentence carries content, though the risk-control justification is slightly verbose relative to the operational instruction it supports.

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 two-parameter builder with no output schema, the description does the work that matters: it says the output is an approve transaction plus a runnable contract-call command, and it flags the precision and risk-control constraints an agent could otherwise get wrong. Only the exact shape of the returned payload and whether any follow-up step is required are left unstated.

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%, and both parameters are documented in the schema, including the usdcAmount=0 revoke case and the account lookup via `baw wallet info --json`. The description repeats the 0-revoke meaning rather than adding to it; its only extra param-relevant context is that decimal precision is auto-matched, which is tool behavior rather than parameter meaning. Baseline 3 is appropriate.

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+resource: generate an exact-amount USDC approve transaction against the Perp Router, plus the accompanying baw contract-call command. That resource is unique among the build_* siblings (positions, margin, LP, orders), so an agent can distinguish it without opening the schema, and the two constraints (never maxUint256, 0 = revoke) further pin down what it produces.

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 a clear context of use (producing the Perp Router USDC allowance before trading) and two concrete usage modes: normal exact-budget approval, and usdcAmount=0 for clearing/revoking an existing allowance. It does not name a sibling alternative or state an explicit precondition such as 'call this before build_open_position', so it stops short of full when/when-not 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