Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Crypto candles, OHLCV: open, high, low, close and volume of Hyperliquid perps

hyperliquid_candles
Read-only

Historical price candles (OHLCV) of a Hyperliquid perpetual such as BTC, ETH or SOL: open, high, low, close, volume in coins and trade count per bar, newest last. Intervals 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w and more; up to 500 bars (default 50). Read from Hyperliquid's public API. Use for charts, backtests, volatility and trend checks, or as context for a trading agent. Example: coin=BTC. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hyperliquid_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
barsNoNumber of bars, 1-500 (default 50)
coinNoCoin symbol such as BTC, ETH, SOL or HYPE (default BTC)
intervalNoBar length: 1m, 3m, 5m, 15m, 30m, 1h (default), 2h, 4h, 8h, 12h, 1d, 3d or 1w

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / bars / maximum
      Previous value: -9007199254740991New value: +500
    • changedInput schema / properties / bars / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, but the description adds material context beyond them: billing at $0.002/call via x402 USDC or a card key, first 10 free, failed calls free, and that repeats are charged (which explains why idempotentHint is false in a billing, not a state-mutation, sense). Data comes from Hyperliquid's public API and defaults/caps (50/500 bars) are disclosed.

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?

Front-loaded with purpose and return shape, then intervals, limits, use cases, and cost; the worked example aids invocation. The pricing sentence is long and partly duplicated ('Price $0.002/call' followed by 'each call is charged, so repeats are not free'), costing a bit of tightness.

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?

With no output schema, the description still tells the agent what a bar contains, its ordering, and that volume is in coins plus a trade count, and it covers intervals, bar cap/default, data source, cost model, and safety. Nothing needed to call or interpret the result is missing.

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 the baseline is 3; the description earns an extra point by adding semantics the schema doesn't state, notably that bars are returned newest-last and that volume is denominated in coins with a trade count per bar. It restates the interval set and the 500/50 bar limits that the schema already documents.

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 concrete resource and shape: 'Historical price candles (OHLCV) of a Hyperliquid perpetual', with the returned fields (open/high/low/close/volume in coins and trade count) and ordering ('newest last') spelled out. That is far more specific than a bare 'get candles', but no sibling (e.g. hyperliquid_prices, hyperliquid_market, hyperliquid_indicators) is named to make the boundary explicit.

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 real when-to-use guidance: charts, backtests, volatility and trend checks, or context for a trading agent, plus a worked call example (coin=BTC). It stops short of stating when NOT to use it or which sibling to prefer for spot/last-price or indicator 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