listSupportedChains
Retrieve a comma-separated list of all supported blockchain networks to identify available Chainlink price feed integrations for AI agents and autonomous systems.
Instructions
Returns a comma-separated list of all supported blockchain networks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:165-185 (handler)The handler function for the 'listSupportedChains' tool. It extracts all chain names from the feedsData object and returns them as a comma-separated string in the MCP response format. Includes error handling.async () => { try { // Get all chain names as comma-separated string const chains = Object.keys(feedsData).join(','); return { content: [{ type: 'text', text: chains }] }; } catch (error) { return { content: [{ type: 'text', text: `Error: ${error.message}` }], isError: true }; } }
- index.js:158-158 (schema)Zod input schema for the 'listSupportedChains' tool, defining no required parameters.const listSupportedChainsSchema = z.object({}).describe('No parameters required');
- index.js:161-186 (registration)MCP server.tool registration for 'listSupportedChains', including name, description, schema reference, and inline handler implementation.server.tool( 'listSupportedChains', 'Returns a comma-separated list of all supported blockchain networks', listSupportedChainsSchema, async () => { try { // Get all chain names as comma-separated string const chains = Object.keys(feedsData).join(','); return { content: [{ type: 'text', text: chains }] }; } catch (error) { return { content: [{ type: 'text', text: `Error: ${error.message}` }], isError: true }; } } );