Skip to main content
Glama

买 meme 代币

build_buy_token
Read-only

生成用报价资产(通常是 USDC)买某市场 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>",
      "usdc": "<usdc>",
      "slippagePct": "<slippagePct>"
    },
    "name": "build_buy_token"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / usdc / maximum
      Added value: +100000000
  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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and '生成...交易' is consistent with building rather than submitting a transaction, so no contradiction. The description usefully adds that the minimum-received amount is derived from the quote minus slippage and that routing switches at graduation. It does not say the tool stops at construction (no signing/broadcast) or how the slippage floor is computed, which are the behavior details an agent most needs.

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?

Two sentences, no filler, with the core action stated first and the routing caveat second. Each sentence carries information the schema does not. Slight density from the parenthetical and clause stacking keeps it from a 5.

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 4-parameter builder with annotations covering the safety profile and a 75%-covered schema, the description covers purpose, asset semantics, and venue routing. The notable gap is the return value: with no output schema, an agent is not told that a transaction payload comes back or what to do with it. Otherwise complete.

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 schema already documents usdc, market, and account in detail. The description adds real meaning only for slippagePct, explaining that it translates into the minimum received amount, and clarifies that the quote asset is typically USDC. That is a modest supplement, so baseline 3 fits.

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 names a specific verb+resource pair: generate a transaction that buys a market's meme token with the quote asset. It is immediately distinguishable from build_sell_token by direction, and it adds the settlement venue (internal curve pre-graduation, PancakeSwap V2 after). It stops short of explicitly naming the counterpart tool, so a 4 rather than 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance: nothing tells the agent whether to call quote_token first, whether the returned transaction must be signed and broadcast by the caller, or what the preconditions are (allowance, graduation state). The routing sentence describes mechanics, not selection criteria. The buy-vs-sell split with the sibling is inferable but never stated.

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