Skip to main content
Glama
gtorreal
by gtorreal

get_price_history

Retrieve OHLCV price history for cryptocurrency markets by aggregating raw trades into candlestick data for specified time periods.

Instructions

IMPORTANT: Candles are aggregated client-side from raw trades (Buda has no native candlestick endpoint) — fetching more trades via the 'limit' parameter gives deeper history but slower responses. Returns OHLCV candles (open/high/low/close as floats in quote currency; volume as float in base currency) for periods 5m, 15m, 30m, 1h, 4h, or 1d. Candle timestamps are UTC bucket boundaries. Example: 'Show me the hourly BTC-CLP price chart for the past 24 hours.'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
market_idYesMarket ID (e.g. 'BTC-CLP', 'ETH-BTC').
periodNoCandle period: '5m', '15m', '30m', '1h', '4h', or '1d'. Default: '1h'.1h
limitNoRaw trades to fetch before aggregation (default: 100, max: 1000). More trades = deeper history but slower response.
Behavior5/5

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

With no annotations provided, the description carries full burden and excels. It discloses critical behavioral traits: client-side aggregation from raw trades (not native), performance trade-offs (more trades = deeper history but slower), response format (OHLCV floats with currency details), timestamp behavior (UTC bucket boundaries), and period options. This goes well beyond basic functionality.

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 description is appropriately sized and front-loaded with an IMPORTANT note about client-side aggregation. Every sentence adds value: performance trade-off, return format, period options, timestamp details, and an example. Minor redundancy exists in repeating 'limit' parameter info, but overall efficient.

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?

Given the tool's complexity (aggregation from trades, multiple parameters) and no annotations or output schema, the description is highly complete. It covers purpose, behavior, parameters, performance considerations, and even includes an example query. This provides sufficient context for an agent to use the tool effectively.

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 description coverage is 100%, so baseline is 3. The description adds meaningful context: it explains the 'limit' parameter's impact on history depth vs. speed, clarifies that periods are for candles (not just a string enum), and provides an example with 'market_id' and 'period'. However, it doesn't add syntax details beyond the schema for 'market_id'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Returns OHLCV candles (open/high/low/close as floats in quote currency; volume as float in base currency) for periods 5m, 15m, 30m, 1h, 4h, or 1d.' It specifies the verb ('returns'), resource ('OHLCV candles'), and distinguishes from siblings like get_trades (raw trades) or get_ticker (current price).

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?

The description provides clear context for when to use this tool: for price history/candlestick data, with an example query. It mentions the trade-off between depth and speed via the 'limit' parameter. However, it doesn't explicitly state when not to use it or name specific alternatives among siblings (e.g., get_trades for raw data).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gtorreal/buda-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server