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
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes |
Implementation Reference
- mcp-server.js:137-141 (handler)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 } },
- mcp-server.js:273-273 (schema)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"] },