Skip to main content
Glama

CHAIN_LIST

Retrieve available blockchain networks for decentralized exchange operations, enabling users to identify supported chains for token swaps and transactions.

Instructions

Get chain list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for CHAIN_LIST tool. Returns a JSON-formatted list of hardcoded supported chain names.
    export const chainList = async () => { const chains = [ 'bsc', 'eth', 'polygon', 'fantom', 'avax', 'arbitrum', 'xdai', 'moonriver', 'optimism', 'aurora', 'cronos', 'harmony', 'aptos', 'near', 'metis', 'kava', 'celo', 'klaytn', 'zksync', 'polygon_zkevm', 'linea', 'telos', 'scroll', 'base', 'mantle', 'opbnb', 'manta', 'blast', 'mode', 'merlin', 'rootstock', 'sei', 'gravity', 'ape', 'sonic', 'sui', 'bera', 'uni', 'flare', 'monad', 'swell', 'hyperevm', 'plume', 'tac', 'plasma' ]; return JSON.stringify(chains, null, 2); };
  • src/tools/index.ts:5-9 (registration)
    Registration of the CHAIN_LIST tool in the tools export object, specifying name, description, and execute handler.
    chainList: { name: "CHAIN_LIST", description: "Get chain list", execute: chainExecute.chainList },

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/openocean-finance/openocean-mcp'

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