Skip to main content
Glama

chain_price_feed_batch

Read-only

Chainlink price feeds batch — Read up to 10 Chainlink Data Feeds in one call (on-chain latestRoundData): price, decimals, updatedAt, age in seconds and a freshness flag per pair, plus a list of stale pairs. pairs= comma list such as ETH/USD,BTC/USD,LINK/USD,USDC/USD,DAI/USD,USDT/USD (required); chain= optional (default ethereum; ETH/USD also on base, arbitrum, optimism; MATIC/USD on polygon). 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": {
      "pairs": "<pairs>"
    },
    "name": "chain_price_feed_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairsYesETH/USD,BTC/USD,LINK/USD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description still adds substantial behavior: a hard batch limit of 10, the on-chain data source, per-pair freshness semantics plus a stale-pair summary, and a paid x402 cost of $0.005 USDC — a payment prerequisite an agent cannot infer from any structured field.

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?

A single dense block that front-loads purpose, then returns, then parameters, then the chain note and price. Parentheticals carry real information rather than filler, though the chain/example parentheses make it heavier than it needs to be for a one-parameter tool.

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 spells out the returned fields and the stale-pair list, and it discloses payment and chain constraints. Gaps remain: no behavior for invalid pairs, for exceeding the 10-pair limit, or for how the stale flag is determined (age threshold).

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% for 'pairs', and the description reinforces the comma-list format with concrete examples and marks it required, which is marginal added value. It also documents a 'chain' parameter (default ethereum, supported networks) that does not appear in the input schema at all, creating a mismatch rather than clarifying an actual parameter.

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?

States a specific verb and resource ('Read up to 10 Chainlink Data Feeds in one call'), the underlying call ('on-chain latestRoundData'), and the exact return fields (price, decimals, updatedAt, age, freshness flag, stale list). The 'batch' naming plus the 'up to 10 in one call' cap lets an agent distinguish it from a single-pair feed reader without opening the schema.

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 'in one call' and the 10-pair cap, and the chain note tells the agent which networks a given pair exists on (e.g. MATIC/USD only on polygon). However, it never states when to prefer this over a single-pair or token-price alternative, nor what to do when more than 10 pairs are needed.

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