Skip to main content
Glama

chain_price_feed_history

Read-only

Crypto price history from Chainlink (on-chain) — Price history for a crypto, FX or gold pair read straight from Chainlink Data Feed rounds on-chain (no third-party price API): open, close, change and change %, high/low, number of oracle updates and average update interval, plus an evenly sampled series where every point carries its real on-chain update time. pair= (built-in on ethereum: ETH/USD, BTC/USD, LINK/USD, SOL/USD, BNB/USD, AAVE/USD, UNI/USD, STETH/USD, USDC/USD, DAI/USD, USDT/USD, BTC/ETH, EUR/USD, GBP/USD, XAU/USD; ETH/USD on base, arbitrum, optimism, polygon) or feed= any Chainlink aggregator proxy address; optional chain= (default ethereum), hours= 1-720 (default 24), points= 2-48 (default 24) Price: $0.005 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pair": "<pair>"
    },
    "name": "chain_price_feed_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYesETH/USD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false. The description adds meaningful behavioral context beyond that: the data comes from on-chain Chainlink rounds, no third-party API is used, sampling is described, and the call costs $0.005 USDC via x402. It does not explain payment flow or failure handling, so it is not fully complete.

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 dense and front-loaded with the core purpose, source, and output metrics. The long embedded lists of pairs and options are relevant, though the single-paragraph structure could be easier to scan.

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?

There is no output schema, so the description carries the burden of explaining returns, and it does so thoroughly: open, close, change, change %, high/low, oracle update count, average update interval, and a sampled series with real on-chain update times. It also identifies the data source and cost, making the definition sufficiently complete for the tool's complexity.

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?

The schema covers the single required parameter with 100% description coverage, but its only parameter description is the example "ETH/USD". The description adds useful valid pair values and explains feed, chain, hours, and points options, but those additional parameters are absent from the input schema, creating a mismatch that limits confidence in invocation.

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

Purpose4/5

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

The description states a specific action and resource: reading historical crypto, FX, or gold prices directly from Chainlink Data Feed rounds on-chain. It is clear about the source and output metrics, but it does not explicitly distinguish when to use this versus siblings such as chain_price_feed or chain_price_at.

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?

Usage is implied by the emphasis on history and on-chain Chainlink data, but there is no explicit when-to-use, when-not-to-use, or named alternative guidance. The agent can infer that this is for historical on-chain prices rather than current or off-chain prices, but the routing is not spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources