Skip to main content
Glama

OursMeme Binance Agentic Wallet MCP

取出 LP

build_withdraw_lp
Read-only

生成取出 LP 份额换回底层资产(USDC 本位市场退回 USDC,币本位市场退回对应 Meme 代币)的交易;不填 shares 为全部取出。普通 LP 无锁仓限制即时赎回;市场创建者(dev)固定需先申请解锁满 7 天后再调用本工具领取赎回。(自动附带可直接执行的 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>"
    },
    "name": "build_withdraw_lp"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
sharesNo取出多少份额;不填为全部
accountYes用户钱包地址(交易的签名人和收款人)

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?

The annotations cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds material behavior beyond them: the 7-day dev unlock prerequisite, the immediate-redeem path for normal LPs, the asset returned per market type, the default exact-amount approval, and that the output carries directly executable preview/execute commands. The only mild tension is a 'withdraw' tool marked read-only, but the description clarifies this tool produces commands rather than executing them, so it is not contradictory.

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 core action and the outcome are front-loaded, with the important conditional (shares omitted = withdraw all) immediately after. The two parentheticals at the end are dense but each carries real information (executable preview/execute commands, default exact-amount approval). Only minor redundancy with the schema on the shares default.

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?

There is no output schema, and the description compensates by explaining what the tool produces: a transaction plus executable baw contract-call preview/execute commands with exact-amount approval. Combined with the disclosed lock-up and dev-unlock constraints, an agent has enough to call it correctly; only the returned data/command shape is left somewhat implicit.

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%, so the schema already documents market, shares and account. The note that omitting shares withdraws everything mirrors what the schema already says ('不填为全部'), and the market address/slug/symbol forms are likewise already in the schema. Baseline 3 applies because the description adds little parameter meaning the agent cannot already read.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: generating a transaction that withdraws LP shares and redeems them into underlying assets, including the redemption asset per market type (USDC-quoted returns USDC, coin-quoted returns the Meme token). That is far beyond restating the title '取出 LP'. It stops short of naming a sibling (e.g. build_deposit_lp as the inverse operation), so it is clear but not sibling-differentiating.

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?

Use conditions are explicit and differentiated by caller class: ordinary LPs redeem instantly with no lock-up, while market creators (dev) must first request an unlock and wait 7 days before calling this tool. This tells the agent when the tool is callable and when a prior step is required. It does not name alternative tools for the dev path, which keeps it short of a 5.

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