Skip to main content
Glama

evm_get_block_gas_limit

Retrieve a chain's block gas limit and recent usage to detect network congestion and estimate per-block transaction capacity.

Instructions

Get block gas limit and usage analysis for congestion detection.

CRITICAL RULES:

  • Read-only operation

  • Gas limit varies by chain

  • High utilization = network congestion

  • Limit determines max transactions per block

PARAMETERS:

  • chain: EVM chain (required)

  • blockCount: Blocks to analyze (optional, default: 6)

EXAMPLES: ✅ Check Ethereum capacity: {chain: "ethereum"} ✅ Analyze 10 blocks: {chain: "polygon", blockCount: 10}

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: • currentLimit: Block gas limit • averageUsed: Average gas used • utilization: Capacity percentage • trend: Increasing/decreasing/stable

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

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to query
blockCountNoNumber of recent blocks to analyze (default: 6)

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 supplied, the description carries the full burden and does declare 'Read-only operation', which is the key safety fact. It also adds interpretation semantics beyond the schema (limit varies by chain, high utilization means congestion, limit caps transactions per block) and discloses the return shape via OUTPUT STRUCTURE. It omits error behavior and whether blockCount has an upper bound.

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 opening line and the CRITICAL RULES section are well front-loaded, but the definition is heavily padded with material irrelevant to invoking this tool: per-chain gas-cost commentary, a TESTNET TOKENS/faucet paragraph, and an entirely unrelated 'Running on Linux' section about apt/yum/pacman and xdg-open. Those sections inflate length without helping the agent call the tool correctly.

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 2-parameter read-only query with no output schema, the definition covers what is needed: required vs optional params, defaults, the full supported chain set, read-only nature, and an explicit output field list. The Linux notes are dead weight, and the lack of guidance on the neighboring gas/analytics tools is the only substantive completeness gap.

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%, so the 3 baseline applies, but the description genuinely adds meaning: it expands the bare enum values into per-chain notes ('ethereum (Sepolia)', 'polygon (Amoy)'), revealing that all seven networks are testnets, and it documents blockCount's default of 6 with a worked example. That is real semantic value beyond the schema's one-line field descriptions.

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 block gas limit and usage analysis') plus the intent ('congestion detection'), which is concrete enough for an agent to select it. It never names or contrasts the closest siblings (evm_get_gas_analytics, evm_get_fee_history, evm_get_gas_oracle), so the boundary against those overlapping gas tools 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?

Usage is implied through the examples ('Check Ethereum capacity', 'Analyze 10 blocks') and the stated goal of congestion detection, and there is a general directive to 'always check gas price before executing transactions'. However, nothing tells the agent when to prefer this over evm_get_gas_price, evm_get_gas_analytics, or evm_get_fee_history, and no failure conditions (e.g., blockCount limits) are stated.

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