Skip to main content
Glama
ymylive
by ymylive

get_exchange_ohlcv

Retrieve high-granularity OHLCV candlestick data from a specific cryptocurrency exchange, including 1-minute candles. Ideal for sub-hour timeframes and exact per-exchange volume analysis.

Instructions

Get OHLCV candlestick data from a specific exchange (high-granularity, including 1-minute candles).

Prefer this over get_aggregated_ohlc when:

  • the user asks about a specific venue, OR

  • they need sub-hour candles (1m/5m/15m), OR

  • they need exact volume on one exchange.

Args: exchange_id: CCXT exchange ID, e.g. "binance". symbol: Unified symbol, e.g. "BTC/USDT". timeframe: Candle width. Not every exchange supports every timeframe; common safe choices: "1m","5m","15m","1h","4h","1d". limit: Number of candles. Most exchanges cap at ~500-1500 per call. since_ms: Optional unix-millis lower bound. Most recent candles when null.

Returns: Array of [timestamp_ms, open, high, low, close, volume] tuples, oldest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchange_idYes
symbolYes
timeframeNo1h
limitNo
since_msNo
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that not every exchange supports every timeframe, and typical limit caps (500-1500 candles). It also describes the return format. However, it omits rate limits or potential cost of the call.

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?

The description is front-loaded with the main purpose, followed by usage guidance, then parameter descriptions, and finally return format. Every sentence is informative, and the structure is logical and 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 absence of annotations and output schema, the description thoroughly covers purpose, usage guidelines, parameter semantics, and return format. It provides sufficient information for an agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema description coverage, the description explains each parameter in detail: exchange_id as CCXT exchange ID, symbol as unified format, timeframe with common safe choices, limit with typical caps, and since_ms behavior when null. This adds significant meaning beyond the bare schema.

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 retrieves OHLCV candlestick data from a specific exchange, noting high granularity including 1-minute candles. It distinguishes itself from the sibling tool `get_aggregated_ohlc` by specifying its use for a single venue and sub-hour timeframes.

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?

The description explicitly lists conditions for preferring this tool over `get_aggregated_ohlc`: when the user asks about a specific venue, needs sub-hour candles, or requires exact volume on one exchange. This provides clear when-to-use and when-not-to-use guidance.

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