Skip to main content
Glama

代币 K 线

get_candles
Read-onlyIdempotent

某市场 meme 代币的 K 线(来自链上内盘发射曲线和毕业后 PancakeSwap V2 成交)。标的本身(含 24/7 XAU 连续黄金指数)的实时报价请用 get_price 或直接查 Pyth。

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>",
      "interval": "<interval>"
    },
    "name": "get_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYes市场:短链接 slug、市场合约地址、代币地址、代币代号,或标的代号如 BTC / ETH / XAU(表示该标的的官方市场)
intervalYes1h

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds context that the annotations cannot provide: where the candles come from (bonding curve before graduation, PancakeSwap V2 after), which tells the agent that coverage is limited to markets that have graduated onto that venue. It does not disclose how far back history goes or whether empty ranges return an error or an empty series.

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 tight sentences, with the actual capability stated first and the routing advice to get_price second. Every clause carries information, and there is no filler. It could be slightly better structured, since the parenthetical provenance sits in the middle of the main sentence.

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?

There is no output schema, so the description is not obliged to explain candle fields, yet it also omits practically relevant behavior: available history depth, maximum number of candles, and how the series is ordered. For a two-parameter market-data read with annotations covering safety, the essential framing is present but the operational boundaries are missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%: market is documented in the schema with its accepted identifier forms, while interval carries just an enum and a default and no prose. The description adds no meaning to either parameter and never mentions intervals or timeframes at all. With half the parameters undescribed and the description silent on both, it does not compensate for the schema gap.

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 resource and output type: candlestick (K-line) data for a meme token in a given market, and it states the data provenance (on-chain bonding curve plus post-graduation PancakeSwap V2 trades). It separates itself from get_price by pointing to that sibling for real-time spot quotes, so an agent can choose between the two without opening a schema. It never says in prose what the interval dimension means, but purpose itself is unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It explicitly names the alternative for a closely related need: use get_price (or Pyth directly) for live quotes of the underlying, including the 24/7 XAU gold index. That is a real routing rule rather than vague context. It does not state when this tool should not be used beyond that case, for example when deeper history or trades are needed, so it stops short of a fully closed rule set.

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