list_chains
Retrieve and display all available Arbitrum Orbit chains and their names to identify networks for querying and monitoring interactions within the Arbitrum ecosystem.
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 for the 'list_chains' tool. Calls ChainLookupService.listChainNames() to retrieve chain names and returns them formatted as text content.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 entry in getAvailableTools() including name, description, and empty input schema (no parameters required).{ 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 for list_chains tool: empty object (no input parameters).inputSchema: { type: "object" as const, properties: {}, },
- src/services/chain-lookup.ts:224-227 (helper)Core helper method listChainNames() in ChainLookupService that ensures data is loaded and returns sorted list of chain names from cached chainsData.async listChainNames(): Promise<string[]> { await this.ensureChainsData(); return this.chainsData.map(chain => chain.name).sort(); }