Skip to main content
Glama
akshaygp18

crypto-mcp-server

by akshaygp18

Get OHLC candlestick data

get_ohlc_candles
Read-only

Fetch open, high, low, and close (OHLC) candlestick data for any cryptocurrency, with the candle interval automatically adjusted to your chosen time window.

Instructions

Get open/high/low/close candles for a coin. CoinGecko picks the candle width from the window: 30 minutes up to 2 days, 4 hours up to 30 days, 4 days beyond that. The chosen width is reported in the result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoLook-back window in days: 1, 7, 14, 30, 90, 180, 365, or 'max'.7
coin_idYesCoinGecko coin id, e.g. 'bitcoin'.
vs_currencyNoQuote currency, e.g. 'usd'.usd

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYesLook-back window requested, in days.
candlesYesCandles, oldest first.
coin_idYesCoinGecko coin id.
vs_currencyYesCurrency the candles are denominated in.
candle_countYesNumber of candles returned.
candle_intervalYesCandle width CoinGecko chose for this window.
Behavior4/5

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

The description adds meaningful behavioral context beyond the annotations (readOnlyHint=true, destructiveHint=false) by explaining CoinGecko's candle width selection logic and noting that the chosen width is reported in the result. This is valuable non-obvious behavior that helps the agent interpret the response.

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 two sentences, front-loaded with the core purpose, followed by the necessary candle width behavior. There is no wasted text or redundancy.

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?

Given the tool's complexity (three parameters, one required) and the presence of annotations and an output schema, the description is sufficiently complete. It covers the core purpose and the critical candle width nuance, while the schema handles parameter details and the output schema handles return format.

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

Parameters3/5

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

Schema description coverage is 100% for all three parameters, so the description does not need to elaborate on parameter semantics. The tool description adds context about how 'days' relates to candle width, but this is behavioral rather than parameter-specific meaning. Baseline 3 is appropriate.

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 'Get open/high/low/close candles for a coin', using a specific verb and resource. It distinguishes itself from sibling tools like get_coin_price (single price) and get_market_chart (market chart data) by focusing specifically on OHLC candlestick data.

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?

The description implies usage for obtaining OHLC candlestick data, but does not explicitly state when to use this tool versus alternatives. There is no mention of exclusions or alternative tools, so the usage guidance is only implied rather than explicit.

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/akshaygp18/crypto-mcp-server'

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