Skip to main content
Glama

Get token candles

get_token_candles
Read-onlyIdempotent

OHLCV candles for one token by chain slug and contract address. tf sets the resolution; from/to are unix SECONDS. Always pass tf and from: with no window the answer runs to over a thousand bars. Use a coarse tf (60, 1D) for long windows.

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": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "get_token_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
tfNoResolution: 1S, 5S, 1, 5, 15, 60, 240 (minutes) or 1D. Default 1.
toNoWindow end, unix seconds (default now).
fromNoWindow start, unix seconds.
chainYesChain slug, e.g. ethereum, base, solana, robinhood.
addressYesToken contract address (0x… on EVM, base58 mint on Solana).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real operational context the annotations lack: the unbounded default window produces an oversized response, which is effectively a result-size warning.

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?

Three tight sentences: identity, then parameter conventions, then the resolution tradeoff. The most consequential guidance (always pass tf and from) is front-loaded and every sentence carries information.

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 read-only, five-parameter, flat-schema tool with no output schema, this covers identification, required conventions, and response-size risk. The only gap is no hint at the shape of a candle record, which an agent might want since no output schema exists.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3. The description goes beyond it by stressing that from/to are unix SECONDS and that tf and from should always be supplied, converting schema facts into practical calling advice, plus a resolution tradeoff for long windows.

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: OHLCV candles for a single token identified by chain slug and contract address. It clearly implies the token scope (versus a perp market), though it never names the sibling get_perp_candles explicitly.

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 gives concrete when-to-use direction: always pass tf and from, and use a coarse tf (60, 1D) for long windows, with the reason (over a thousand bars otherwise). It stops short of naming alternatives such as get_perp_candles for perp data.

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