Skip to main content
Glama

Free Base Blockchain Tools

estimate_gas

Estimate gas needed for a transaction. Useful for dapps and wallets to show users how much gas they'll pay.

Input Schema

NameRequiredDescriptionDefault
toYesRecipient address (0x + 40 hex)
fromYesSender address (0x + 40 hex)
valueNoETH value to send (in wei, hex)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the entire behavioral burden. It does not state whether the transaction is simulated or broadcast, whether it can fail/revert, or that the call is a safe read, which are the key concerns for an estimation endpoint.

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?

Two short sentences, front-loaded with the core action. The second sentence is partly decorative (restating the estimate in user-facing terms) but it is not wasteful enough to penalize heavily.

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?

There is no output schema, so the description should ideally characterize the return value (e.g. hex gas units). It only says "gas needed," leaving the return format unspecified for a tool whose whole purpose is producing a number.

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 the from/to/value semantics and formats are already fully documented in the schema. The description adds no parameter-level meaning beyond that, making the baseline 3 appropriate.

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 (estimate) and resource (gas for a transaction), so the agent knows exactly the operation. It does not differentiate itself from the nearby sibling get_gas_price, which a caller could plausibly confuse with it.

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?

"Useful for dapps and wallets to show users how much gas they'll pay" gives a plausible context of use, so usage is implied rather than absent. However, it never says when to prefer this over get_gas_price, nor what prerequisites (e.g. a valid from/to pair) are needed.

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.

Resources