Skip to main content
Glama

chain_price_at

Read-only

Historical crypto price at a timestamp (Chainlink on-chain) — The price that was in effect at any past moment, read from Chainlink Data Feed round history on-chain - it walks earlier aggregator phases too (Ethereum ETH/USD history reaches back to Aug 2020): price, round id, phase, when that round was set, how old it was at the requested time and when the next update came. For accounting, tax lots, settlement checks and backtests. pair= (same built-in list as /v1/chain/price-feed-history, e.g. ETH/USD, BTC/USD, SOL/USD, EUR/USD, XAU/USD) or feed= any aggregator proxy; time= ISO 8601 or unix seconds; optional chain= (default ethereum). A time before the feed's first round returns 404 (not charged) Price: $0.004 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>",
      "time": "<time>"
    },
    "name": "chain_price_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYesETH/USD
timeYes2026-11-01T00:00:00Z

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the read-only, open-world, non-destructive safety profile, and the description adds real behavioral context: it walks earlier aggregator phases, returns 404 (not charged) for times before the first round, and costs $0.004 USDC via x402. Payment and edge-case handling are exactly the kind of non-schema detail that raises this above the annotation baseline.

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

Conciseness3/5

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

Information is front-loaded and dense, but the single run-on sentence mixes purpose, mechanisms, return fields, parameter syntax, price, and edge cases with heavy parentheticals. Much of it earns its place, yet the wall-of-text form reduces scannability.

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?

With no output schema, the description compensates by naming the returned fields (price, round id, phase, when the round was set, its age at request time, next update time), which is valuable. Combined with the 404 edge case, an agent has enough to invoke it correctly, minor the schema/parameter mismatch.

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 100%, so the baseline is 3, but the description adds value: it lists concrete pair options (ETH/USD, BTC/USD, SOL/USD, EUR/USD, XAU/USD), states time accepts ISO 8601 or unix seconds, and notes chain defaults to ethereum. The only concern is it references feed= and chain= parameters that don't appear in the input schema, which could confuse an agent about accepted fields.

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?

States a specific verb+resource: 'Historical crypto price at a timestamp' read from Chainlink round history on-chain. It clearly frames the value as 'the price that was in effect at any past moment,' distinguishing it from a current-price lookup, though it doesn't explicitly name the sibling chain_price_feed to contrast with.

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

Usage Guidelines4/5

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

Gives concrete use cases ('accounting, tax lots, settlement checks and backtests') that set the context for when to reach for this tool. It stops short of explicit 'don't use this, use X instead' exclusions versus the current-price or history-feed siblings.

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