Skip to main content
Glama

chain_estimate_gas

$0.005 via x402: estimate the gas a transaction will use (eth_estimateGas) across 6 chains — the pre-send read tx-building, trading and settlement agents make to size gas and avoid out-of-gas reverts. Pass to (+ optional from/value/data).

Input Schema

NameRequiredDescriptionDefault
toYesRecipient/contract address 0x...
dataNoCalldata 0x...
fromNo
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
valueNoWei (hex or decimal)
x_paymentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. Added

TDQS

A3.8/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It discloses useful context: the $0.005 x402 cost, the read-only nature (implies 'estimate'), and 6-chain coverage. However it never states what the estimate returns (a gas unit figure?), what the x_payment parameter expects, or payment/auth requirements beyond the price mention.

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

Conciseness4/5

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

The core purpose is front-loaded, and the second sentence covering parameter passing is short. The '$0.005 via x402' prefix is dense but useful pricing signal rather than waste. Slightly cramped in one long sentence, but nothing is redundant.

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

Completeness3/5

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

For a 6-parameter paid tool with no output schema and no annotations, the description covers purpose, cost and chains but leaves the return value, error modes (e.g. revert/data decoding failures) and payment mechanics unstated. Adequate but with clear gaps.

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

Parameters3/5

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

Schema coverage is 67%, so the schema already documents to/data/chain/value. The description's 'Pass to (+ optional from/value/data)' adds little beyond restating required vs optional, and it omits chain and x_payment entirely. Baseline 3 is appropriate since the schema does most of the work.

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

Purpose5/5

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

States a specific verb+resource: 'estimate the gas a transaction will use (eth_estimateGas) across 6 chains'. This is clearly distinguishable from per-block siblings like chain_gas_price or chain_fee_history because it is transaction-specific rather than network-baseline. The underlying RPC method is even named.

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?

Frames the use case explicitly: the 'pre-send read tx-building, trading and settlement agents make to size gas and avoid out-of-gas reverts.' This tells an agent when this tool is appropriate (before sending a tx to size gas). No alternatives are named, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.