Skip to main content
Glama

Hyperliquid Candles

hyperliquid_candles
Read-onlyIdempotent

OHLCV candles for one Hyperliquid perp or spot symbol, from Hyperliquid's public info API ({"type":"candleSnapshot"}). Each candle: open/high/low/close/volume (base units), trade count, and the interval's start/end timestamps. Pass lookback_hours for a window ending now (default 24h), or an explicit start_time/end_time (ISO date/datetime or unix seconds/milliseconds) for a specific historical window, Hyperliquid retains candle history well beyond 24h. interval accepts Hyperliquid's own granularities: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w, 1M.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "coin": "BTC",
      "interval": "1h",
      "lookback_hours": 6
    },
    "name": "hyperliquid_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesPerp symbol (e.g. "BTC") or spot pair id/name (e.g. "@0" or "PURR/USDC").
end_timeNoWindow END, same formats as start_time. Defaults to now.
intervalNo1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 8h | 12h | 1d | 3d | 1w | 1M (default "1h")
start_timeNoWindow START, ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now.
lookback_hoursNoWindow length ending now, in hours (default 24). Ignored when start_time is given.

Output Schema

NameRequiredDescriptionDefault
coinNo
countNo
foundNo
sourceNo
candlesNo
end_timeNo
intervalNo
start_timeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / end_time / description
      Previous value: -"Window END — same formats as start_time. Defaults to now."New value: +"Window END, same formats as start_time. Defaults to now."
    • changedInput schema / properties / start_time / description
      Previous value: -"Window START — ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now."New value: +"Window START, ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now."
  2. First observed

TDQS

A3.8/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 openWorld, so the safety profile is covered. The description adds useful context beyond that: the upstream API endpoint, volume being in base units, the default 24h window, and that lookback_hours is ignored when start_time is supplied. However, it says nothing about pagination, rate limits, or maximum candle counts per request, which are real behavioral concerns for a historical time-series fetch.

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 definition is front-loaded with purpose and return shape, then windowing, then interval options — a logical order. The full interval enumeration duplicates the schema's enum list and could be trimmed, but the rest of the prose is dense and earns its place.

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

Completeness5/5

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

An output schema exists, yet the description still sketches the candle record shape, and it fully covers symbol identification, both windowing modes, and interval granularity. For a read-only time-series fetch with 100% schema coverage and annotations carrying the safety profile, nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, so the schema already documents coin, interval, start_time, end_time, and lookback_hours, including accepted formats and defaults. The description largely restates that material — the interval list, ISO/unix formats, and the ignored-parameter rule all appear in the schema. It adds only marginal meaning, such as confirming that volume is in base units.

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 verb and resource: OHLCV candles for a single Hyperliquid perp or spot symbol, sourced from the public candleSnapshot endpoint. It also enumerates the returned candle fields, so an agent knows exactly what it gets. It does not explicitly contrast itself with siblings such as hyperliquid_l2_book or hyperliquid_mids, leaving that differentiation to inference from the resource name.

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 clearly explains the two windowing modes — lookback_hours for a window ending now versus explicit start_time/end_time for historical windows — and notes that Hyperliquid retains history beyond 24h, which prevents an agent from assuming only recent data is available. It stops short of naming alternative tools or stating when this tool should not be used.

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.