Skip to main content
Glama

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
NameRequiredDescriptionDefault
chainNo
cursorNo
endNo
limitNo
sourcesNo
startNo
symbolsNo

Implementation Reference

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

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