elfa_trending_tokens
Identify and analyze trending tokens across specified blockchains and timeframes using sentiment data and technical analysis tools, powered by CoinGecko MCP integration.
Instructions
Trending tokens aggregation. Params: timeframe, chain, limit, cursor.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| cursor | No | ||
| limit | No | ||
| timeframe | No |
Implementation Reference
- mcp-server.js:189-196 (handler)Primary handler for the 'elfa_trending_tokens' MCP tool. Constructs query params (timeframe, chain, limit, cursor) and invokes generic elfa_query to fetch from ELFA API."elfa_trending_tokens": async (args, meta) => { const query = {}; if (args && args.timeframe !== undefined) query.timeframe = args.timeframe; // "24h","7d","30d" if (args && args.chain !== undefined) query.chain = args.chain; if (args && args.limit !== undefined) query.limit = args.limit; if (args && args.cursor !== undefined) query.cursor = args.cursor; return toolHandlers["elfa_query"]({ path: "/v2/aggregations/trending-tokens", method: "GET", query }, meta); },
- mcp-server.js:303-308 (registration)Tool registration entry defining name, description, input schema, and annotations for 'elfa_trending_tokens'.{ name:"elfa_trending_tokens", description:"Trending tokens aggregation. Params: timeframe, chain, limit, cursor.", inputSchema:{ type:"object", properties:{ timeframe:{type:"string"}, chain:{type:"string"}, limit:{type:"number"}, cursor:{type:"string"} }}, annotations:{ title:"ELFA: Trending Tokens", readOnlyHint:true, openWorldHint:true }
- mcp-server.js:185-187 (handler)Alias handler 'elfa_trending' that delegates to the main 'elfa_trending_tokens' handler."elfa_trending": async (args, meta) => { return toolHandlers["elfa_trending_tokens"](args, meta); },
- mcp-server.js:296-302 (registration)Registration for alias tool 'elfa_trending'.{ name:"elfa_trending", description:"Alias to /v2/aggregations/trending-tokens (timeframe, chain, limit, cursor).", inputSchema:{ type:"object", properties:{ timeframe:{type:"string"}, chain:{type:"string"}, limit:{type:"number"}, cursor:{type:"string"} }}, annotations:{ title:"ELFA: Trending (Alias)", readOnlyHint:true, openWorldHint:true } },
- services/elfa.js:47-52 (helper)Alternative helper function elfaTrendingTokens in services/elfa.js (not directly used in MCP server, but similar API wrapper with different params).export const elfaTrendingTokens = async ({ timeWindow='7d', page=1, pageSize=50, minMentions=5, from=null, to=null }) => { const params = { page, pageSize, minMentions }; if (from != null && to != null) { params.from = from; params.to = to; } else { params.timeWindow = timeWindow; } return safeGet('/v2/aggregations/trending-tokens', params); };