Skip to main content
Glama

elfa_set_base

Configure the base URL for Elfa API integration on CG Alpha MCP to enable sentiment data and trending token analysis alongside technical indicators for comprehensive crypto market insights.

Instructions

Set ELFA base URL (e.g., https://api.elfa.ai).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYes

Implementation Reference

  • The async handler function for the 'elfa_set_base' tool. It extracts the 'base' argument, validates it as a URL using new URL(), sets the global ELFA_BASE if valid (stripping trailing slashes), and returns success with the new base or an error if invalid.
    "elfa_set_base": async (args) => { const base = args && args.base; try { const u = new URL(base); ELFA_BASE = u.toString().replace(/\/+$/,""); return { content: textContent({ ok:true, base: ELFA_BASE }) }; } catch { return { content: textContent({ ok:false, message:"Invalid URL for 'base'" }), isError:true }; } },
  • mcp-server.js:271-275 (registration)
    The tool registration object for 'elfa_set_base' in the tools array, including name, description, inputSchema (requiring 'base' string), and annotations. Used in the tools/list RPC method.
    { name:"elfa_set_base", description:"Set ELFA base URL (e.g., https://api.elfa.ai).", inputSchema:{ type:"object", properties:{ base:{type:"string"} }, required:["base"] }, annotations:{ title:"ELFA: Set Base URL", readOnlyHint:false, openWorldHint:false } },
  • The input schema definition for the 'elfa_set_base' tool, specifying an object with a required 'base' property of type string.
    inputSchema:{ type:"object", properties:{ base:{type:"string"} }, required:["base"] },

Other Tools

Related Tools

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