Skip to main content
Glama

chain_price_feed

Read-only

Chainlink price feed read — Read a Chainlink Data Feed on-chain (latestRoundData): price, decimals, description, updatedAt, age in seconds and a FRESH / CHECK_HEARTBEAT / STALE flag. pair= (built-in: ETH/USD, BTC/USD, LINK/USD, USDC/USD, DAI/USD, USDT/USD on ethereum; ETH/USD on base, arbitrum, optimism; ETH/USD, MATIC/USD on polygon) or feed= any aggregator proxy address; chain= default ethereum. Price: $0.003 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": {
      "chain": "<chain>",
      "pair": "<pair>"
    },
    "name": "chain_price_feed"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYesETH/USD
chainYesethereum

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?

The annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: it discloses the freshness-classification output and, importantly, that the call costs $0.003 USDC via x402 on Base — an auth/payment requirement an agent must know before invoking.

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 purpose and return shape are front-loaded, and the parenthetical enumerations pack a lot of routing information into a compact block. It is dense but every clause carries signal; the only cost is that the pair/chain/feed options are crammed into one run-on sentence rather than separated.

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 correctly takes on the burden of describing return values, and it does so. What remains thin is the meaning of the FRESH / CHECK_HEARTBEAT / STALE thresholds (no heartbeat windows given) and the unresolved feed-parameter inconsistency, which an agent would need to resolve before calling.

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 coverage is 100%, but the schema's own descriptions are only bare examples ('ETH/USD', 'ethereum'), so the description meaningfully expands them with the built-in pair list and supported chains. Against that, it advertises a `feed=` aggregator-address alternative that does not exist in the input schema (only pair and chain are defined, both required), and it calls chain a default when the schema requires it — both create ambiguity for the caller.

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 opens with a specific verb and resource — 'Read a Chainlink Data Feed on-chain (latestRoundData)' — and then enumerates exactly what comes back (price, decimals, description, updatedAt, age, freshness flag). That level of specificity makes it easy to separate from generic siblings like crypto_price or chain_call, which do not read an aggregator proxy directly.

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?

It gives useful context — which pairs are built in and on which chains, and that chain defaults to ethereum — so an agent can infer when the tool applies. However, it never states when to prefer this over alternatives such as crypto_price or chain_call, nor any exclusions or prerequisites beyond the payment note.

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