Skip to main content
Glama

Crypto prices from Chainlink on Base: ETH, BTC, cbBTC, SOL, USDC, DAI, EUR in USD

crypto_price
Read-only

Current prices in USD from Chainlink Data Feeds on Base mainnet: ETH, BTC, cbBTC, SOL, USDC, DAI, and EUR. One pair or all at once, each with the feed's last update time, age in seconds, and a stale flag, read straight from the oracle contracts (the same prices DeFi protocols use). Useful for valuing balances, converting USDC amounts, and checking a stablecoin peg. Not charged for an unknown pair or when the feeds can't be read. Paid via x402; see list_prices.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "crypto_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairNoOptional pair, e.g. "ETH/USD" or "BTC". Omit for all: ETH/USD, BTC/USD, CBBTC/USD, SOL/USD, USDC/USD, DAI/USD, EUR/USD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the readOnly/openWorld annotations: the staleness model (last update time, age in seconds, stale flag), the oracle-contract source, error/no-charge behavior for unknown pairs, and x402 payment. With no output schema, this is the only place an agent learns what comes back.

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?

Four front-loaded sentences: source and scope first, then usage, then failure/billing. Dense but every clause carries information; only the parenthetical about DeFi protocols is borderline padding.

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?

Covers source, scope, return fields, staleness semantics, failure modes, and pricing model for a single-parameter read tool. Nothing an agent needs in order to call it or interpret results correctly is missing.

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% and the pair parameter already documents the omit-for-all behavior with examples. The description's 'one pair or all at once' restates the schema rather than adding syntax or normalization rules.

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+resource (current USD prices), the exact source (Chainlink Data Feeds on Base mainnet), and enumerates every supported pair. An agent can distinguish it from siblings like read_feed or list_prices 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 Guidelines4/5

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

Names concrete use cases (valuing balances, converting USDC amounts, checking a stablecoin peg) and routes billing questions to list_prices. It lacks an explicit when-not condition or a named alternative price tool, so it stops short of full 5-level routing guidance.

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