trending
Identify trending cryptocurrencies by analyzing current search and trading activity data to monitor market movements.
Instructions
Get trending cryptocurrencies right now — what people are searching for and trading.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:137-147 (handler)The `getTrending` function fetches data from CoinGecko API to retrieve trending cryptocurrencies.
async function getTrending() { const data = await fetch('https://api.coingecko.com/api/v3/search/trending'); return { coins: data.coins.map(c => ({ name: c.item.name, symbol: c.item.symbol, market_cap_rank: c.item.market_cap_rank, price_btc: c.item.price_btc, })), }; } - index.js:282-286 (registration)The 'trending' tool is registered in the MCP tool definitions list.
{ name: 'trending', description: 'Get trending cryptocurrencies right now — what people are searching for and trading.', inputSchema: { type: 'object', properties: {} } }, - index.js:332-333 (handler)The MCP handler calls `getTrending` when the 'trending' tool is requested.
case 'trending': return await getTrending();