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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:324-333 (handler)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: {}, }, },
- src/index.ts:1042-1045 (schema)Input schema definition for 'list_chains' tool: empty object (no input parameters). Part of the tool registration object.inputSchema: { type: "object" as const, properties: {}, },
- src/services/chain-lookup.ts:224-227 (helper)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(); }