Skip to main content
Glama

evm_get_network_info

Retrieve real-time block height, EIP-1559 gas prices, and congestion for a specified EVM chain to time transactions and monitor network health.

Instructions

Get comprehensive network health metrics including block info, gas prices, and utilization.

Aggregates real-time network data: latest block number, timestamp, gas prices (EIP-1559 breakdown), and network congestion level. Essential for timing transactions and monitoring chain health.

CRITICAL RULES:

  • Read-only operation (no gas cost)

  • Data is current but may be 1-2 blocks behind

  • Gas prices fluctuate rapidly

  • Base fee adjusts every block (EIP-1559)

  • Different chains have different block times

PARAMETERS:

  • chain: EVM chain to query (required)

    • Each chain has unique characteristics

    • Block times vary: Ethereum ~12s, Polygon ~2s, Arbitrum ~0.25s

EXAMPLES: ✅ Check Ethereum network status: {chain: "ethereum"}

✅ Monitor Polygon for low-gas window: {chain: "polygon"}

✅ Verify Arbitrum is syncing: {chain: "arbitrum"}

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: • latestBlock: Current block number • timestamp: Block timestamp (Unix) • gasPrice: Current gas price (wei) • baseFee: EIP-1559 base fee (wei) • priorityFee: Suggested priority fee (wei) • utilization: Network congestion (0-100%) • chainId: Network chain ID

COMMON MISTAKES:

  • Not accounting for block time differences across chains

  • Assuming gas prices are stable (they change constantly)

  • Ignoring utilization when timing transactions

  • Using outdated data for transaction submission

USE CASES:

  • Time transactions for low gas periods

  • Monitor network congestion before operations

  • Verify chain is syncing properly

  • Display network health in UI

  • Calculate optimal gas prices

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_network_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so well: it declares the operation read-only with no gas cost, warns data may be 1-2 blocks stale, notes gas prices fluctuate rapidly and base fee adjusts every block, and gives per-chain block times. It also discloses the seven supported chains and that all use worthless testnet tokens. It stops short of stating rate limits or failure modes, keeping it out of the top band.

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 purpose is front-loaded, but the definition is heavily padded: gas-price volatility and base-fee adjustment are stated three separate times across CRITICAL RULES, CRITICAL GAS CONSIDERATIONS, and COMMON MISTAKES, and three near-identical EXAMPLES add nothing the single-parameter schema doesn't show. Worst of all, the appended 'Running on Linux' / package-manager notes are entirely unrelated to this tool and are pure noise in the call path.

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?

For a one-parameter read tool with no output schema, the definition covers the important ground: it enumerates the return fields (latestBlock, gasPrice, baseFee, priorityFee, utilization, chainId), describes staleness of the data, and documents all seven chain values. The remaining gap is behavioral guidance relative to sibling tools rather than any missing information about this tool itself.

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 single parameter already has an enum of seven chains, so the schema baseline alone would be a 3. The description earns above baseline by annotating each enum value with concrete characteristics — Ethereum ~12s blocks and high gas, Polygon ~2s and low fees, Arbitrum ~0.25s and ~10-50x cheaper — which is genuine meaning an agent cannot read off the schema.

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?

The description opens with a specific verb and resource — 'Get comprehensive network health metrics including block info, gas prices, and utilization' — and the OUTPUT STRUCTURE section confirms it is an aggregate snapshot tool. It never names or contrasts with the many granular siblings (evm_get_gas_price, evm_get_base_fee, evm_get_block_number, evm_get_gas_oracle) whose data this tool rolls up, so differentiation is left to inference.

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

Usage Guidelines3/5

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

The USE CASES list ('Time transactions for low gas periods', 'Monitor network congestion') gives implied usage context, but nowhere does it state when to prefer this aggregate over the single-purpose siblings, nor any exclusion. For a catalog with over 30 siblings in the same evm_get_* family, an agent still has to guess whether to call this or evm_get_gas_oracle.

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