Skip to main content
Glama
Wh0FF24

crypto-data-mcp

by Wh0FF24

get_historical_prices

Retrieve historical cryptocurrency price data as timestamp-price pairs for charting, trend analysis, backtesting, or volatility metrics. Supports 1–365 days with adaptive granularity.

Instructions

Get historical price data for a cryptocurrency over a specified number of days. Returns an ordered array of [timestamp_ms, price] pairs suitable for charting, trend analysis, backtesting, or computing metrics like volatility and drawdown. Data granularity varies automatically: 5-minute intervals for 1 day, hourly for 2-90 days, and daily for 91-365 days. Use this when you need a price series rather than a single current price. For just the current price, use get_price instead. Valid range: 1 to 365 days. Accepts common symbols or CoinGecko IDs. The server retries once with a 5-second backoff on rate limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
symbolYes
currencyNousd

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Despite having no annotations, the description fully discloses behavioral traits: returns ordered [timestamp_ms, price] pairs, automatic granularity adjustment based on days, retry with 5-second backoff on rate limits, and accepts common symbols or CoinGecko IDs. No contradictions with annotations.

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 well-structured and concise: front-loaded with purpose, followed by output format, use cases, granularity details, usage guidance, and fallback behavior. Every sentence provides necessary information without redundancy.

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 no annotations and an output schema present, the description covers all critical aspects: purpose, parameters, behavior, error handling (retry), and differentiation from siblings. It is sufficiently detailed for correct tool invocation.

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 0%, but the description compensates by explaining the days parameter's effect on granularity (5-min, hourly, daily), default value (7), valid range, and that symbol accepts common symbols or CoinGecko IDs. It does not detail the currency parameter beyond default, but adds substantial meaning overall.

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: retrieving historical price data for a cryptocurrency over a specified number of days. It distinguishes itself from sibling tools by explicitly contrasting with get_price for single current prices and mentioning use cases like charting and backtesting.

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?

Provides explicit guidance on when to use this tool ('when you need a price series rather than a single current price') and points to the sibling tool get_price as the alternative. Also specifies valid range (1-365 days) and data granularity variations, enabling correct decision-making.

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/Wh0FF24/crypto-data-mcp'

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