Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }; } }
  • 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 }; } } );

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/kukapay/chainlink-feeds-mcp'

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