Skip to main content
Glama

卖 meme 代币

build_sell_token
Read-only

生成卖出某市场 meme 代币换回报价资产的交易,最少到账按报价扣滑点。毕业前在内盘成交,毕业后自动走 PancakeSwap V2 路由。

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>",
      "tokens": "<tokens>",
      "slippagePct": "<slippagePct>"
    },
    "name": "build_sell_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
tokensYes卖出多少枚
accountYes用户钱包地址(交易的签名人和收款人)
slippagePctYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tokens / maximum
      Added value: +1000000000000000
  2. Changed3 schema fields changed
    • removedInput schema / properties / market / maxLength
      Removed value: -80
    • removedInput schema / properties / market / minLength
      Removed value: -1
    • removedInput schema / properties / market / type
      Removed value: -"string"
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnly, non-destructive, non-idempotent, closed-world; the description adds genuinely new behavioral facts: the fill venue depends on graduation status and the sell auto-routes to PancakeSwap V2 afterward, plus how minimum received is derived. That is real routing and pricing context that annotations cannot convey. It stops short of stating that this only constructs an unsigned transaction for the caller to sign and submit, which matters given readOnlyHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, no filler, and the core action is front-loaded before the venue-routing detail. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-required-param transaction builder with no output schema, the description covers action, pricing, and routing well. Gaps remain on the surrounding workflow: whether a token approval is needed before selling, and whether the returned transaction must be signed and broadcast separately (especially given readOnlyHint=true).

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 75%, and the already-described params (market accepts slug/contract/token/underlying codes, account is signer+payee) are not restated. The description does add meaning for the undocumented slippagePct by explaining that it reduces the minimum received versus the quote. It says nothing about how 'tokens' interacts with decimals or how a partial sell is bounded, so it remains baseline-plus rather than fully compensating.

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 pairs a specific verb and resource: generate a transaction that sells a given market's meme token for the quote asset, and it names the execution venues (bonding curve pre-graduation, PancakeSwap V2 post-graduation). The sell direction is unambiguous, so it is easily distinguishable from build_buy_token by name alone. It never explicitly contrasts with the sibling quote_token, which keeps it from a 5.

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?

Implicit guidance is present: 'min received equals quote minus slippage' hints that a quote precedes this build step, and the graduation split tells the agent what the resulting transaction will do. However, there is no explicit when-to-use statement, no instruction to call quote_token first, no mention of the buy counterpart, and no preconditions such as token approval.

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