Skip to main content
Glama

Get price bars

get_bars
Read-onlyIdempotent

OHLCV price bars for an instrument over a time range. Instrument ids are bare Hyperliquid symbols (BTC, HYPE) or dex-prefixed HIP-3 symbols (xyz:TSLA) — exactly the symbol values scan_markets returns. Intervals are 1m/5m/15m/1h/1d; start/end default to the last 24h. Returns [timestamp, {o,h,l,c,v}] series with a meta envelope (caps applied server-side). (Requires api:read.)

Input Schema

NameRequiredDescriptionDefault
endNoRFC 3339 end, e.g. 2026-07-02T00:00:00Z (default: start+24h, or now)
startNoRFC 3339 start, e.g. 2026-07-01T00:00:00Z (default: end-24h, or now-24h)
intervalYes
max_pointsNo
instrument_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real context beyond them: the api:read auth requirement, server-side caps on returned points, and the meta envelope. It doesn't detail what happens when a range exceeds caps (truncation vs error), but the added auth and cap disclosure is meaningful.

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-loads the core statement, then packs symbol format, intervals, defaults, and return shape into dense but readable prose. No filler sentences; slightly information-dense but each clause earns its place.

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?

With no output schema, the description carries the return-value burden and does so ('[timestamp, {o,h,l,c,v}] series with a meta envelope'). Auth requirement and defaults round out the picture; only edge-case behavior for oversized ranges is unstated.

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 only 40%, but the description compensates well—it documents the instrument_id format (bare Hyperliquid symbols vs dex-prefixed HIP-3 like xyz:TSLA), enumerates intervals, and explains start/end defaults. Only max_points behavior (beyond the cap note) is left to the schema.

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+resource ('OHLCV price bars for an instrument over a time range') and clarifies scope via defaults and interval set. It does not differentiate itself from the closely related sibling get_prices, which an agent might reasonably confuse it with.

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

Usage Guidelines3/5

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

Provides useful context: symbol values come from scan_markets and start/end default to the last 24h. However, it never states when to choose this over get_prices or get_live_snapshot, leaving the main selection decision implicit.

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