Skip to main content
Glama

get_candles

Fetch OHLCV candlestick data for a specified trading pair and interval to analyze price movements, build charts, and review market patterns.

Instructions

Get OHLCV candlestick chart data for technical analysis

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of candles to return (default: 100, max: 1000)
symbolYesTrading pair symbol, e.g. BTC-PERP
intervalYesCandle interval

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose whether data is historical or real-time, pagination behavior, rate limits, or error behavior for invalid symbols. Only the schema's limit description hints at the 1000-candle cap.

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?

A single, front-loaded sentence with no wasted words. It is appropriately terse, though brevity here contributes to the gaps in guidance and behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a data-retrieval tool with no annotations and no output schema, the description should clarify return shape, timing, and pagination. It omits all of these, leaving the agent to infer behavior from the schema alone.

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 100%, with descriptions for limit, symbol, and interval (including an enum and a default). The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource: retrieves OHLCV candlestick data. The addition of 'for technical analysis' signals the intended use case. It lacks explicit differentiation from siblings like get_market_detail or get_orderbook, but the resource (candles) is sufficiently distinct.

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

Usage Guidelines2/5

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

No guidance on when to use this versus alternatives such as get_market_detail or get_orderbook, nor any prerequisites or exclusions. Usage is only implied by the phrase 'technical analysis'.

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