Crypto prices (ticker, id or contract)
crypto_price[PAID $0.001 USDC per call via x402 on Base; errors are free] Live crypto prices for up to 25 coins per call: pass tickers in symbols (BTC,ETH,SOL,AERO,...; common tickers built in, others resolved by CoinGecko search to the largest coin with that ticker), CoinGecko ids, or one token address + chain (base default; ethereum, arbitrum, optimism, polygon, bsc, avalanche, solana). Returns price, market cap, 24h volume and 24h % change in each vs currency (usd default; up to 5, e.g. usd,eur,btc) plus last-updated time. Each USD price is cross-checked against Coinbase spot: sources {coingecko, coinbase} and deviationPct per coin, maxDeviationPct overall. Data: CoinGecko public API, cached 15 s; falls back to Coinbase spot rates (price only) if CoinGecko is unavailable. All params optional: with none it returns BTC and ETH in USD. Unknown coins = 404, invalid input = 400, never charged.
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
| Name | Required | Description | Default |
|---|---|---|---|
| vs | No | Comma-separated quote currencies (max 5), e.g. usd,eur,btc. Default usd. | |
| ids | No | Comma-separated CoinGecko coin ids, e.g. bitcoin,aerodrome-finance (optional). | |
| chain | No | Chain of `address` (default base). | |
| address | No | Optional token contract address; returns that token price (overrides symbols/ids). | |
| symbols | No | Comma-separated tickers, e.g. BTC,ETH,SOL (max 25). Optional: defaults to BTC,ETH. |