Skip to main content
Glama

get_external_market_config

Retrieve current configuration for external market data API to facilitate accurate querying and integration with EDUCHAIN and SailFish DEX operations.

Instructions

Get the current configuration for external market data API

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • Handler implementation for the 'get_external_market_config' tool. It calls external_market.getConfig() and returns the configuration as JSON or an error message.
    case 'get_external_market_config': { try { const config = external_market.getConfig(); return { content: [ { type: 'text', text: JSON.stringify(config, null, 2), }, ], }; } catch (error) { console.error('Error getting external market config:', error); return { content: [ { type: 'text', text: JSON.stringify({ error: 'Failed to get external market API configuration', message: (error as Error).message }, null, 2), }, ], isError: true, }; }
  • src/index.ts:667-674 (registration)
    Registration of the 'get_external_market_config' tool in the ListToolsRequestSchema handler, including its name, description, and input schema (empty object).
    name: 'get_external_market_config', description: 'Get the current configuration for external market data API', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • Helper function getConfig() exported from external_market.ts that returns a copy of the current external market configuration. This is called by the tool handler.
    /** * Get the current external market API configuration */ export function getConfig(): typeof config { return { ...config }; }

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/SailFish-Finance/educhain-ai-agent-kit'

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