Skip to main content
Glama
dewanshparashar

Arbitrum MCP Server

list_chains

Discover available Arbitrum Orbit chains by retrieving their names for querying and monitoring purposes.

Instructions

List all available Arbitrum Orbit chains and their names. Use this to see what chains are available for querying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'list_chains' MCP tool. Calls ChainLookupService.listChainNames() and returns a formatted text response listing all available chain names.
    case "list_chains": const chainNames = await this.chainLookupService.listChainNames(); return { content: [ { type: "text", text: `Available chains:\n${chainNames.join("\n")}`, }, ], };
  • src/index.ts:1038-1046 (registration)
    Tool registration in getAvailableTools(). Defines the 'list_chains' tool name, description, and empty input schema (no parameters required). Returned by ListToolsRequestSchema handler.
    { name: "list_chains", description: "List all available Arbitrum Orbit chains and their names. Use this to see what chains are available for querying.", inputSchema: { type: "object" as const, properties: {}, }, },
  • Input schema definition for 'list_chains' tool: empty object (no input parameters). Part of the tool registration object.
    inputSchema: { type: "object" as const, properties: {}, },
  • Helper method in ChainLookupService that retrieves and sorts the list of all known chain names. Called by the 'list_chains' handler.
    async listChainNames(): Promise<string[]> { await this.ensureChainsData(); return this.chainsData.map(chain => chain.name).sort(); }

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/dewanshparashar/arbitrum-mcp'

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