Skip to main content
Glama

代币 K 线

get_candles
Read-onlyIdempotent

Fetches OHLC candlestick data for meme tokens from on-chain internal markets and PancakeSwap V3 trades by market identifier and interval for charting or analysis.

Instructions

某市场 meme 代币的 K 线(来自链上内盘和 PancakeSwap V3 成交)。标的本身的行情请直接查 Hyperliquid 或 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. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description's real added value is data provenance — it tells the agent the candles are built from on-chain internal-pool fills plus PancakeSwap V3 trades, which materially affects how the numbers should be interpreted. It says nothing about history depth, candle alignment, gaps, or rate/latency limits.

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 tight sentences, no filler. The scope statement comes first and the disambiguation (go elsewhere for underlying prices) follows immediately, so the most decision-relevant information is front-loaded.

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, and the description never states what a returned candle contains (OHLCV? volume? notional?), nor how far back history goes or how the interval aligns. Provenance and exclusions are well covered, but for a time-series tool with no return-value documentation these are real gaps an agent would notice at call time.

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 50%: the 'market' parameter already documents its accepted forms (slug, market contract, token address, token symbol, or underlying symbol like BTC/ETH/XAU), and 'interval' carries an enum plus default. The description adds no syntax or format detail beyond that, though its phrase '某市场 meme 代币' usefully frames what the market parameter resolves to. Baseline 3 is appropriate.

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?

Names a specific resource (K-line/candles) and scopes it precisely: candles for a meme token in a given market, sourced from on-chain internal-pool and PancakeSwap V3 trades. It also explicitly excludes the underlying asset's own price action, telling the agent to go to Hyperliquid or Pyth instead, which distinguishes it from price-oriented siblings such as get_price. It stops short of naming an in-catalog sibling, so a 4 rather than 5.

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?

Gives a clear when-to-use (meme-token candles per market) and an explicit when-not (underlying asset quotes -> Hyperliquid/Pyth). The alternatives it points to are external services rather than catalog siblings, so an agent still has to guess whether get_market_series or get_market_trades would be a better in-catalog choice. Clear context with no misleading exclusions.

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