Skip to main content
Glama

evm_get_price_feed

Fetch real-time Chainlink price feeds for tokens and trading pairs across supported EVM chains, with optional price history and staleness checks.

Instructions

Get real-time price data from Chainlink oracles

Fetch accurate price feeds for tokens and trading pairs. Includes price history and staleness checks.

AVAILABLE FEEDS:

  • Major pairs: ETH/USD, BTC/USD, LINK/USD

  • Stablecoins: USDC/USD, DAI/USD, USDT/USD

  • DeFi tokens: AAVE/USD, UNI/USD, CAKE/USD

  • Native tokens: POL/USD, AVAX/USD, BNB/USD

PARAMETERS:

  • chain: Target blockchain

  • pair: Price pair (e.g., ETH/USD)

  • customFeed: Custom price feed address (optional)

  • includeHistory: Include recent price history

  • roundId: Specific round for historical data (optional)

Returns latest price, statistics, history, and data freshness.

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": "evm_get_price_feed"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYes
chainYes
roundIdNo
customFeedNo
includeHistoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose that results include staleness checks and data freshness, which is meaningful beyond a bare 'get price.' It omits error behavior for unsupported pairs, whether customFeed overrides pair, and any rate-limit or auth context.

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?

Purpose is front-loaded and the sectioned layout (feeds, parameters, returns) is easy to scan. The twelve-item feed enumeration occupies substantial space but earns it by preventing invalid pair values.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, no-annotation, no-output-schema tool, the description covers inputs and gives a one-line return summary. Key gaps remain around parameter interdependence (customFeed vs pair, roundId vs includeHistory) and failure modes, which matter for correct invocation.

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 description coverage is 0%, so the description must compensate, and it does list all five parameters with brief glosses (optional flags for customFeed and roundId, an example format for pair). The glosses are shallow: the interaction between customFeed and the required pair, and the format/semantics of roundId, remain unexplained.

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 (get) and resource (real-time price data from Chainlink oracles) and clarifies scope with 'tokens and trading pairs.' It is distinguishable from siblings like evm_get_gas_price or evm_get_dex_quote by naming the oracle source, though it never explicitly contrasts with them.

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?

The AVAILABLE FEEDS list implies supported use cases and gives concrete valid pairs, which helps an agent avoid bad arguments. However, there is no explicit when-to-use or when-not guidance relative to sibling price tools such as evm_get_dex_quote or evm_get_pool_info, and no stated preconditions.

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

Deploy Server

Other Tools