elfa_token_news
Track and analyze token news by specifying symbols, chain, time range, and sources. Provides actionable insights for crypto market analysis within the CG Alpha MCP framework.
Instructions
Token news. Params: symbols (comma), chain, start, end, limit, cursor, sources.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| cursor | No | ||
| end | No | ||
| limit | No | ||
| sources | No | ||
| start | No | ||
| symbols | No |
Implementation Reference
- mcp-server.js:199-209 (handler)The handler function for the elfa_token_news MCP tool. It processes input arguments into query parameters and calls the generic elfa_query handler to fetch data from '/v2/data/token-news'."elfa_token_news": async (args, meta) => { const query = {}; if (args && args.symbols !== undefined) query.symbols = args.symbols; // "ETH,BTC" if (args && args.chain !== undefined) query.chain = args.chain; if (args && args.start !== undefined) query.start = args.start; if (args && args.end !== undefined) query.end = args.end; if (args && args.limit !== undefined) query.limit = args.limit; if (args && args.cursor !== undefined) query.cursor = args.cursor; if (args && args.sources !== undefined) query.sources = args.sources; return toolHandlers["elfa_query"]({ path: "/v2/data/token-news", method: "GET", query }, meta); },
- mcp-server.js:310-317 (registration)The tool registration entry, including name, description, inputSchema, and annotations, used in the tools/list response.{ name:"elfa_token_news", description:"Token news. Params: symbols (comma), chain, start, end, limit, cursor, sources.", inputSchema:{ type:"object", properties:{ symbols:{type:"string"}, chain:{type:"string"}, start:{type:"string"}, end:{type:"string"}, limit:{type:"number"}, cursor:{type:"string"}, sources:{type:"string"} }}, annotations:{ title:"ELFA: Token News", readOnlyHint:true, openWorldHint:true } },
- mcp-server.js:312-316 (schema)The input schema defining the expected parameters for the elfa_token_news tool.inputSchema:{ type:"object", properties:{ symbols:{type:"string"}, chain:{type:"string"}, start:{type:"string"}, end:{type:"string"}, limit:{type:"number"}, cursor:{type:"string"}, sources:{type:"string"} }}, annotations:{ title:"ELFA: Token News", readOnlyHint:true, openWorldHint:true }
- services/elfa.js:54-63 (helper)A helper function that calls the ELFA '/v2/data/token-news' endpoint, used in debug endpoints but not directly in the MCP server.export const elfaTokenNews = async (opts) => { const { coinIds, page = 1, pageSize = 20, reposts = false } = opts; const params = { coinIds, page, pageSize, reposts }; if ('from' in opts && 'to' in opts && opts.from != null && opts.to != null) { params.from = opts.from; params.to = opts.to; } else { params.timeWindow = opts.timeWindow || '7d'; } return safeGet('/v2/data/token-news', params); };