Skip to main content
Glama

evm_get_chain_info

Retrieve supported EVM chain details—including RPC endpoints, chain IDs, block height, gas prices, and connection status—or compare all chains to verify configuration before transactions.

Instructions

Get comprehensive information about supported EVM chains including network status and configuration.

Returns detailed chain specifications, RPC endpoints, explorers, current block height, gas prices, and connection status. Use "all" to get comparative overview of all 7 chains.

CRITICAL RULES:

  • Returns current live data (block number, gas price) if chain is connected

  • "all" option provides quick comparison across all chains

  • Testnet chain IDs are different from mainnet (don't confuse them)

  • RPC URLs are configurable via environment variables

PARAMETERS:

  • chain: Chain identifier or "all" (required)

    • Supported chains: ethereum, polygon, avalanche, bsc, arbitrum, base, worldchain

    • Special value "all" returns info for all chains

    • Must be lowercase

EXAMPLES: ✅ Get single chain info: {chain: "polygon"}

✅ Compare all chains: {chain: "all"}

✅ Check Ethereum Sepolia config: {chain: "ethereum"}

❌ Invalid - wrong chain name: {chain: "eth"}

❌ Invalid - mainnet name: {chain: "ethereum-mainnet"}

SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559

CRITICAL GAS CONSIDERATIONS:

  • Ethereum: High gas costs, use gas oracle for timing

  • Polygon/BSC: Very low gas, safe for frequent transactions

  • Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum

  • Avalanche: Dynamic fees, can spike during congestion

  • Always check gas price before executing transactions

TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.

OUTPUT STRUCTURE: • success: Boolean indicating operation success • chain(s): Chain identifier(s) • name: Full chain name • chainId: Numeric chain ID • nativeToken: Native token symbol (ETH, POL, etc.) • rpcUrl: RPC endpoint URL • explorer: Block explorer base URL • testnet: Boolean (always true for this server) • connected: Boolean connection status • currentBlock: Latest block number (if connected) • gasPrice: Current gas price in gwei (if connected) • executionTime: Time taken in milliseconds

COMMON MISTAKES:

  • Using mainnet chain names expecting testnet data

  • Not checking "connected" field before trusting block data

  • Assuming all chains have same gas costs (they vary dramatically)

  • Hardcoding chain IDs without consulting this tool

USE CASES:

  • Discover available chains and their configurations

  • Compare gas prices across chains before choosing where to deploy

  • Verify RPC connection status before batch operations

  • Get block explorer URLs for transaction links

  • Check chain IDs for wallet configuration

Running on Linux.

LINUX-SPECIFIC NOTES:

  • Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)

  • Python 3 is typically 'python3' command

  • GNU tools are standard

  • Use 'xdg-open' command to open files/applications

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "<chain>"
    },
    "name": "evm_get_chain_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain to get info for, or "all" for all chains

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full load and does well: it discloses that live data (block number, gas price) is only returned when connected, that all networks are testnets with valueless tokens, that RPC URLs come from environment variables, and it enumerates the output fields. It stops short of stating the operation is read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core definition is buried in a very long block that repeats the chain list, adds gas-cost advice and faucet notes that belong to other tools, restates output fields twice, and appends unrelated 'Linux-specific notes' about apt/yum and xdg-open that are pure noise for a chain-info call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Since there is no output schema, the OUTPUT STRUCTURE section is genuinely useful and makes the tool callable without guessing return fields. The testnet/connected caveats round out what an agent needs, though the surrounding gas and OS material is unrelated padding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the enum already lists every accepted value, but the description adds real meaning beyond it: the lowercase requirement, invalid examples like 'eth' and 'ethereum-mainnet', and the important clarification that the named chains actually resolve to testnets (Sepolia, Amoy, Fuji, etc.).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Get comprehensive information about supported EVM chains including network status and configuration.' This is clear and distinguishes it partly from narrower siblings like evm_get_chain_id or evm_get_gas_price, though it never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The USE CASES and EXAMPLES sections give concrete when-to-use context (discover chains, compare gas, verify RPC status), and the 'all' mode is explained. However, there is no explicit routing away from overlapping siblings such as evm_get_chain_id or evm_get_gas_price, so the agent must infer overlap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools