Skip to main content
Glama

getSupportedChains

Retrieve a list of supported blockchain chain IDs to identify compatible networks for interactions through the Adamik MCP Server.

Instructions

Get a list of supported chain IDs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline handler function that executes the getSupportedChains tool logic. It imports the chains array and joins it into a comma-separated string returned as text content.
    server.tool("getSupportedChains", "Get a list of supported chain IDs", {}, async () => { const text = chains.join(","); return { content: [ { type: "text", text, }, ], }; });
  • src/module.ts:223-233 (registration)
    Registration of the getSupportedChains tool on the MCP server, including description, empty input schema, and inline handler.
    server.tool("getSupportedChains", "Get a list of supported chain IDs", {}, async () => { const text = chains.join(","); return { content: [ { type: "text", text, }, ], }; });
  • Zod schema for the GetSupportedChains response, defining a record of chain IDs to ChainDetail objects (not directly used by the tool).
    export const GetSupportedChainsResponseSchema = z.object({ chains: z.record(z.string(), ChainDetailSchema), }); export type GetSupportedChainsResponse = z.infer<typeof GetSupportedChainsResponseSchema>;
  • The default exported array of supported chain IDs, imported and used by the getSupportedChains handler.
    "ethereum", "cosmoshub", "axelar", "dydx", "osmosis", "bitcoin", "babylon", "starknet", "aptos", "solana", "sepolia", "holesky", "optimism", "optimism-sepolia", "bsc", "base", "ton", "tron", ];

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/AdamikHQ/adamik-mcp-server'

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