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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/index.ts:1372-1398 (handler)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: [], }, },
- src/external_market.ts:59-64 (helper)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 }; }