Skip to main content
Glama

x402-estimate-gas

Estimate Gas: Calls eth_estimateGas on Base or Ethereum for a to/data/value transaction and returns the gas 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
toNo
dataNo
fromNo
chainNo
valueNo
calldataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / calldata / description
      Removed value: -"Calldata to process"
    • removedInput schema / properties / chain / description
      Removed value: -"Chain to process"
    • removedInput schema / properties / data / description
      Removed value: -"Data to process"
    • removedInput schema / properties / from / description
      Removed value: -"From to process"
    • removedInput schema / properties / to / description
      Removed value: -"To to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does add real context beyond the schema: the underlying RPC method, the two supported chains, the returned value (gas), and the payment model ('5 free trial calls per signed wallet'), which implies a metered/paid call requiring a signed wallet. It does not say what happens after the free trial, whether payment/authorization is required, or how errors or unsupported chains behave.

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 that leads with the action and mechanism, then the transaction shape and return value. The trailing free-trial blurb is marketing-ish but short and does convey a real constraint, so nothing is egregiously wasted.

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 tool with no annotations, no output schema and no per-parameter descriptions, the description is only partially sufficient: it covers the core intent, half the parameters, the chains and the return value, but leaves 'from', 'calldata', payment mechanics and failure modes unexplained.

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 0% across 6 parameters, so the description must compensate. It does explain three of them (to, data, value) and effectively enumerates the chain parameter's valid values (Base, Ethereum), but 'from' and 'calldata' — and the interaction between 'data' and 'calldata' — remain undocumented.

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 names a specific verb and mechanism ('Calls eth_estimateGas'), the supported chains (Base, Ethereum), the input shape (to/data/value transaction) and the output (gas). That is far more than a restatement of the name. It does not, however, distinguish itself from the many gas-related siblings (x402-gas, x402-gas-price, x402-gas-now, x402-fee-estimate, x402-multi-gas), so a full 5 is not warranted.

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 statement of when to choose this over the many gas siblings, no prerequisites, and no exclusions. The only implicit guidance is that it applies to a to/data/value transaction on Base or Ethereum. An agent cannot tell from this text why it would pick this tool rather than x402-fee-estimate or x402-gas-price.

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