Skip to main content
Glama
Ethereum MCP
by ETHCF

estimate_gas

Calculate the gas required for a blockchain transaction using destination address and data, plus optional chain and ETH value.

Instructions

Estimate gas for a transaction.

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": {
      "to": "<to>",
      "data": "<data>"
    },
    "name": "estimate_gas"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination address (0x...)
dataYesTransaction data (0x...)
chainNoChain name or ID (default: ethereum)
valueNoETH value in wei (hex)0x0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and discloses nothing: not whether this is a read-only simulation, whether it executes or only simulates, what happens with an undefined `from`, or whether results differ per chain. For a 4-parameter estimator with zero annotation coverage this is a substantial gap.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity reflects under-specification rather than disciplined editing.

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

Completeness2/5

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

With no annotations and no output schema, the description should at least state the estimation model (simulation vs. heuristic), the return shape (hex gas units), and its relation to the sibling gas tools. None of that is present, leaving an agent able to identify the tool but not to use it confidently.

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 description coverage is 100%, so all four parameters, including the `chain` default and hex `value` format, are already documented in the schema. The description adds no semantics beyond that, which is the baseline-3 case.

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 gives a specific verb and resource ("Estimate gas for a transaction"), so the agent knows the operation. It offers no differentiation from the near-identical sibling get_gas_estimate or from get_gas_price, leaving the agent to guess which estimator applies.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool rather than get_gas_estimate or get_gas_price, and no prerequisites such as needing a funded address or a valid `to`. Usage is only inferable from the tool name.

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