smart_get_price
Fetches token prices with automatic fallbacks between CoinGecko and DefiLlama, so queries can still return a price when one source fails.
Instructions
Get price for any token with automatic fallbacks between CoinGecko and DefiLlama. More reliable than single-source tools.
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": {
"token": "<token>"
},
"name": "smart_get_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain for contract addresses (default: ethereum) | ethereum |
| token | Yes | Token name (e.g., "bitcoin", "ethereum") or contract address (0x...) |