Skip to main content
Glama

买 meme 代币

build_buy_token
Read-only

Builds a transaction to buy a market's meme token with USDC, applying slippage to the minimum received and routing via the internal book before graduation or PancakeSwap V2 after.

Instructions

生成用报价资产(通常是 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. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint=true and destructiveHint=false already set, the description usefully adds behavior beyond the annotations: the minimum received is computed as the quote minus slippage, execution goes through an internal bonding curve before graduation, and it automatically routes via PancakeSwap V2 afterwards. It still omits whether the result is an unsigned transaction that the caller must sign and broadcast, which is relevant for a build_* tool.

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?

The description is two tightly packed sentences with no wasted words. It leads with the core action and then adds routing and slippage details, so the important information comes first.

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 four-parameter transaction-building tool with no output schema and only partial annotation coverage, the description covers pricing and routing well. It is still unclear what the tool returns, such as an unsigned transaction object or calldata, and whether any approval step is needed. These gaps are notable for a tool whose whole purpose is to produce a transaction.

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%, so most parameters are documented in the schema, which sets the baseline at 3. The description does clarify that slippagePct determines the minimum received relative to the quote, adding meaning that the schema does not provide. That is useful, but it's not enough to move the score above the baseline.

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 concrete verb and resource: generating a transaction to buy a meme token in a market, paid with a quote asset. Combined with the title, this makes it clearly distinct from build_sell_token. It doesn't explicitly name a sibling to contrast with, which keeps it just short of 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?

Usage is implied by 'buy' versus the sibling sell tool, and the description explains the routing difference before and after graduation. However, it gives no explicit guidance on when to use this tool rather than alternatives (for example, calling quote_token first to preview pricing), and it states no exclusions or prerequisites.

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