Skip to main content
Glama
ymylive
by ymylive

get_aggregated_ohlc

Aggregate OHLC candlestick data across all exchanges to analyze market-wide price trends. Candle width adjusts automatically based on the selected time window, from 30-minute to daily candles.

Instructions

Get aggregated OHLC (open/high/low/close) candlestick data across all exchanges.

Use for technical-analysis-style candlestick views of "the market" rather than a single venue. For per-exchange high-granularity candles (1m, 5m, etc.), use get_exchange_ohlcv (CCXT) instead.

Candle width auto-selected by CoinGecko based on days:

  • days = 1 -> 30-minute candles

  • days in {7, 14, 30} -> 4-hour candles

  • days in {90, 180, 365, max} -> daily candles

Args: coin_id: CoinGecko coin ID. vs_currency: Quote currency (e.g. "usd"). days: Window in days. One of "1","7","14","30","90","180","365","max".

Returns: Array of [unix_ms, open, high, low, close] tuples.

Note: coin_id is validated against ^[a-z0-9][a-z0-9._-]{0,127}$.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coin_idYes
vs_currencyNousd
daysNo30
Behavior4/5

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

No annotations provided, but description explains candle width auto-selection based on days parameter and return format. Lacks details on error handling or rate limits, but covers main behavioral traits sufficiently.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with clear sections, front-loaded purpose, and concise sentences. Every sentence adds value without repetition.

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?

Comprehensive given no output schema and three parameters: explains purpose, usage, parameter details, return format, and validation. Sufficient for an AI agent to invoke correctly.

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 0%, so description compensates by explaining all three parameters: coin_id validation pattern, vs_currency example, and days with mapping to candle widths. Could add more detail on vs_currency.

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?

Clearly states it gets aggregated OHLC candlestick data across all exchanges, with specific verb and resource. Distinguishes from sibling get_exchange_ohlcv for per-exchange data.

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

Usage Guidelines5/5

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

Explicitly advises use for technical-analysis-style views of the market rather than a single venue, and directs to get_exchange_ohlcv for per-exchange high-granularity candles.

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/ymylive/coin-mcp'

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