Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

撤单

build_cancel_orders
Read-only

撤销未成交的委托(限价单、止盈止损,以及 status=expired 的过期市价单),一次可撤多张;保证金和剩余执行费退回钱包。订单 key 从 get_account 的 orders 获取。发送时按 step 里的 gasLimitHint 设 gas 上限。(自动附带可直接执行的 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>",
      "keys": "<keys>"
    },
    "name": "build_cancel_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYes
agentNoagent 专用通道:填 agent 自己的钱包地址后,交易由 agent 用自己的私钥直接签名发送,不用用户逐笔确认(用户需先用 build_agent_authorize 授权这个地址)。不填则由用户钱包签名
accountYes用户钱包地址(交易的签名人和收款人)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, and non-idempotent behavior. The description adds valuable behavioral detail beyond them: margin and remaining execution fees are refunded, only unfilled/eligible orders are affected, and the tool emits preview/execute commands with exact-amount authorization.

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 description is front-loaded with the action and order scope, followed by practical execution details. It is dense but mostly earns its space; the parenthetical packs multiple details that slightly reduce readability.

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 transaction-builder tool with no output schema, the description covers the key input source, what gets canceled, refund behavior, gas handling, and emitted commands. It could say more about key format or failure/partial-cancellation behavior, but the essential operational picture is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents account and agent, while the description fills in the otherwise undocumented keys parameter by saying keys come from get_account's orders and can include multiple orders. It still does not specify key format or the maxItems=50 limit, so it is strong but not complete.

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 states a specific verb and resource: cancel unfilled orders. It further scopes the eligible order types (limit, TP/SL, expired market orders) and multi-order cancellation, which clearly separates this from other build_* siblings.

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 usage context: order keys come from get_account's orders, multiple orders may be canceled at once, and gas should follow step.gasLimitHint. It does not explicitly name when-not-to-use conditions or alternatives, but the operational context is clear.

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