Skip to main content
Glama

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
NameRequiredDescriptionDefault
chainNo
cursorNo
limitNo
timeframeNo

Implementation Reference

  • 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 }
  • 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 } },
  • 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); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JCF0/cg-alpha-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server