Skip to main content
Glama

卖 meme 代币

build_sell_token
Read-only

Builds an unsigned transaction to sell a market's meme token for its quote asset, applying slippage to the minimum received and routing post-graduation trades through PancakeSwap V2.

Instructions

生成卖出某市场 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. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, so the description correctly does not need to argue safety, and it agrees with them rather than contradicting them because building a transaction is read-only. It adds real behavioral context beyond the annotations, namely that pre-graduation fills happen on the internal book and post-graduation routes through PancakeSwap V2, and that the minimum received is the quote minus slippage. However, it still does not disclose that the result is an unsigned transaction needing approval and signing, nor any failure cases; that keeps it at an adequate but not rich level.

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 sentences, both front-loaded with the core action first and then the slippage and routing detail. There is no filler, no restatement of the title, and every clause carries information an agent would otherwise have to guess.

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?

All 4 parameters are required and there is no output schema, so the description should say what comes back; it only says '生成...交易' without specifying an unsigned transaction payload. The slippage and routing behavior are covered, but the token-approval prerequisite for selling ERC20 tokens and the shape of the returned transaction are missing, which leaves gaps for a build-type mutation call.

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?

Schema coverage is 75% and the market parameter is already well documented in the schema with the accepted slug, address, and symbol forms. The description adds meaning the schema does not carry: slippage operates on the quoted amount to determine the minimum received, and the execution venue (internal book vs. PancakeSwap) depends on graduation status, which explains cross-parameter behavior. The 'tokens' and 'account' semantics rest on the schema alone.

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 opens with a specific verb-plus-resource ('生成卖出某市场 meme 代币换回报价资产的交易' – build a transaction that sells a market's meme token back to the quote asset), which is unambiguous and implicitly the mirror of the sibling build_buy_token. It never names that sibling, so the differentiation is inferred from the word 'sell' rather than stated.

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?

The usage context is only implied: it is for selling meme tokens in a given market. There is no statement of when to prefer this over quote_token (for a price preview) or over a direct swap tool, and no mention of prerequisites such as token approval or wallet signing. An agent can infer the purpose but gets no routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.