get_supported_networks
Retrieve available EVM blockchain networks to identify compatible chains for ENS resolution, token operations, and smart contract interactions.
Instructions
Get a list of all supported EVM networks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/core/tools.ts:148-182 (registration)Registration of the 'get_supported_networks' tool, including empty input schema and inline async handler that calls getSupportedNetworks() to retrieve and return the list of supported networks.server.tool( 'get_supported_networks', 'Get a list of supported EVM networks', {}, async () => { try { const networks = getSupportedNetworks(); return { content: [ { type: 'text', text: JSON.stringify( { supportedNetworks: networks }, null, 2 ) } ] }; } catch (error) { return { content: [ { type: 'text', text: `Error fetching supported networks: ${error instanceof Error ? error.message : String(error)}` } ], isError: true }; } } );
- src/core/chains.ts:341-345 (helper)Helper function that generates the list of supported networks by extracting keys from networkNameMap, filtering out short aliases (length <=2), and sorting alphabetically.export function getSupportedNetworks(): string[] { return Object.keys(networkNameMap) .filter((name) => name.length > 2) // Filter out short aliases .sort(); }
- src/server/server.ts:18-19 (registration)Calls registerEVMTools which includes the registration of get_supported_networks among other tools.registerEVMTools(server); registerEVMPrompts(server);
- src/core/resources.ts:395-395 (helper)Usage of getSupportedNetworks() in the supported_networks resource handler (not the tool).const networks = getSupportedNetworks();
- src/core/tools.ts:151-151 (schema)Empty Zod schema indicating the tool takes no input parameters.{},