Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Live Chainlink oracle prices for up to 20 crypto assets in USD ($0.003)

get_crypto_prices

Fetch live USD prices for BTC, ETH, LINK, SOL, USDC and 20+ crypto assets from Chainlink on Ethereum, including round ID and update age; no API key, pay per successful x402 call.

Instructions

Live USD prices for BTC, ETH, LINK, SOL, USDC and ~20 more, read straight from Chainlink aggregator contracts on Ethereum: price, decimals, round id, last update time and age in seconds. Not charged for bad input, an unsupported symbol, or when every feed read fails. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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": {
      "symbols": "<symbols>"
    },
    "name": "get_crypto_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
quoteNoQuote currency. Only USD is supported (default).
symbolsYesComma list of 1-20 symbols, e.g. BTC,ETH,LINK. Supported: BTC,ETH,LINK,USDC,USDT,DAI,SOL,BNB,MATIC,POL,AVAX,UNI,AAVE,ARB,MKR,SNX,CRV,COMP,stETH

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only mark it non-read-only and open-world; the description goes well beyond by disclosing the x402 payment flow, the exact $0.003 per-call cost, the required X402_PRIVATE_KEY wallet on Base, and the no-charge-on-failure policy. It also enumerates the response shape (price, decimals, round id, last update time, age in seconds), which is essential given there is no output schema.

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 the returned fields are front-loaded in one dense opening sentence, and the cost model follows. The free-on-failure policy is stated twice ('not charged for bad input...' and '(not charged when the call fails)'), a minor redundancy that costs a little space.

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?

For a paid read tool with no output schema, the description covers what it reads, the fields returned, the cost and payment mechanism, and the credentials needed. Nothing an agent must know before calling — price, wallet requirement, failure billing — 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%, with both parameters fully documented including the supported symbol list and the USD-only quote constraint, so the schema does the heavy lifting. The description adds only a loose '~20 more' symbol count, giving no syntax or format detail beyond the schema.

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 — live USD crypto prices read from Chainlink aggregator contracts on Ethereum — and names the exact assets plus the returned fields. An agent can tell this apart from get_exchange_rates or get_gas_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?

It gives clear context for use (live on-chain oracle reads, no API key, pay-per-call) and states that failed or unsupported reads are free, which informs retry behavior. It never explicitly says when to prefer this over a sibling rate tool such as get_exchange_rates, so it falls short of full alternative routing.

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