Skip to main content
Glama

代币报价

quote_token
Read-onlyIdempotent

Calculates expected token or USDC output and fees for buying or selling a market meme token, routing through the launch curve before graduation and PancakeSwap V2 after.

Instructions

某市场 meme 代币买或卖的报价:输入报价资产金额(买,通常是 USDC)或代币数量(卖),返回预计得到的数量和手续费。毕业前走内盘发射曲线,毕业后走 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": {
      "market": "<market>",
      "side": "<side>",
      "amount": "<amount>"
    },
    "name": "quote_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYes
amountYes买:花多少 USDC;卖:卖多少枚代币
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)

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?

The annotations already declare this a safe, idempotent, non-destructive read. The description adds substantive behavior beyond them: pricing runs on an internal bonding curve before graduation and on PancakeSwap V2 after graduation, and the post-graduation path includes a token tax. It also states that the response contains the expected quantity and fees. The description does not say whether the returned fee already includes the tax, which is the one gap.

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 purpose and inputs come first, followed by the return value and then the pricing-venue caveat, so the description is well front-loaded. Two sentences carry the essential information without padding, though the phrasing is dense and chains several clauses.

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, so the description must carry the return semantics, and it does: expected quantity plus fees. Given a three-parameter read-only tool, the pricing model and the venue split (bonding curve vs. PancakeSwap V2 plus token tax) supply the context an agent needs to interpret a quote. The only shortfall is that it does not explain which fee components appear in the response, or whether the tax is already folded into the quote.

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 67%, and the schema already spells out the market parameter's accepted forms and the per-side meaning of amount. The description largely restates that the amount is a spend amount on buy and a token quantity on sell, and it adds a minor clarification that the quote asset is 'usually USDC'. It adds little beyond the structured fields.

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: a buy/sell quote for a meme token in a market, returning expected token quantity and fees. That is clearly a pricing/estimation tool and not, for example, transaction construction like build_buy_token. However, it never names or contrasts with those sibling tools, so the distinction is only implied by the word '报价' (quote).

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 description implies when to use the tool: before you need an expected amount and fees, based on the direction given through the input parameters. It gives no explicit when-not guidance and does not tell the agent to follow up with build_buy_token or build_sell_token to execute. The routing is therefore inferred rather than stated.

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