Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

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

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>"
    },
    "name": "x402-estimate-gas"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
dataNo
fromNo
chainNo
valueNo
calldataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "to"
      +]
  2. 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"
  3. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose the underlying RPC call, the two supported chains, and a cost/limit signal ('5 free trial calls per signed wallet'), which is genuinely useful. It omits failure behavior, what happens past the free trial (payment/header requirements), which chain is the default, and units of the returned value.

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 compact sentence with the core action front-loaded and the cost note trailing; almost nothing is wasted aside from the emoji. No structural markers are needed at this length.

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?

For a six-parameter tool with no annotations and no output schema, the definition is thin: it never says which chain is used if 'chain' is omitted, doesn't state the units or shape of the returned gas value beyond 'returns the gas', and doesn't explain the access/payment model behind the free-trial limit.

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

Parameters2/5

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

Schema description coverage is 0% for six parameters, so the description must compensate and it only partly does: it names to, data, and value, and implies the chain parameter via 'Base or Ethereum'. It leaves 'from' and 'calldata' entirely unexplained and never clarifies the overlap between the 'data' and 'calldata' parameters, which is a real ambiguity for an agent constructing the call.

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 Gas') and mechanism ('Calls eth_estimateGas on Base or Ethereum') plus the input shape ('to/data/value transaction'), so an agent knows exactly what it gets back. It does not differentiate itself from the many gas-related siblings, keeping it short of a 5.

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 only implied: you call it with a to/data/value transaction on Base or Ethereum to get a pre-transaction gas figure. There is no explicit when-to-use vs. when-not guidance and no named alternative among the ~30 related gas tools.

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