Skip to main content
Glama

Multi-chain EVM gas fees + USD transfer cost

gas_estimate
Read-onlyIdempotent

Live EVM gas fees on Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche: next base fee, slow/standard/fast tips (median of p10/p50/p90 over 20 blocks), EIP-1559 maxFee, and cost of a native or ERC-20 transfer in native and USD (Chainlink), incl. OP-stack L1 data fee. Optional gas=units. Picks cheapest chain. 502 if a chain is unreadable (not charged). PAID: $0.001 USDC per call on Base via x402 (MCP transport: retry with params._meta["x402/payment"]). Same tool over plain HTTP: GET /v1/gas/estimate.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gas_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
gasNooptional gas units (21000-30000000) to price as a custom transaction
chainsNocomma list of ethereum, base, arbitrum, optimism, polygon, avalanche (aliases eth, arb, op, matic, avax); default all

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, so the safety profile is covered; the description goes well beyond by disclosing the pricing model, the exact payment-retry mechanism, the 502 failure mode and the fact that failures are not billed. It also names the underlying data sources (median of p10/p50/p90 over 20 blocks, Chainlink for USD, OP-stack L1 data fee), which tells an agent how fresh and how composed the numbers are.

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 pricing/return information is front-loaded and each clause carries content, but the middle section is acronym-dense and reads as a spec dump (median percentiles, EIP-1559, Chainlink, OP-stack) with no structural separation between 'what you get', 'what it costs', and 'how to pay'. A single line break or bullet grouping would raise this to a 5.

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

Completeness5/5

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

With no output schema, the description carries the full burden of describing returns, and it does so concretely (fee fields, native + USD cost, L1 data fee). It also covers error behavior, cost, payment mechanics, and an alternate transport endpoint — everything an agent needs to call it correctly and handle failure.

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 100%, so both parameters (gas, chains) are already fully documented including the range and the alias list. The description adds only marginal meaning beyond that — it clarifies that omitting gas defaults to pricing a native or ERC-20 transfer, which is a useful default-behavior hint, but repeats the chain list verbatim. Baseline 3 is appropriate.

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?

Opens with a specific verb+resource pair ("Live EVM gas fees") and immediately scopes it to six named chains. It then enumerates the exact return concepts (next base fee, slow/standard/fast tips, EIP-1559 maxFee, transfer cost in native and USD, OP-stack L1 data fee), so an agent knows precisely what it gets. Nothing in the sibling list overlaps, and the domain is unmistakable.

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?

Gives clear operating context: it picks the cheapest chain by default, accepts an optional custom gas unit count, fails with 502 when a chain is unreadable and is not charged, and is a paid endpoint at $0.001 USDC per call with a concrete retry path (params._meta["x402/payment"]) plus a plain-HTTP alternative. What it lacks is any explicit when-not-to-use or named alternative (e.g., when to prefer a different fee source), so it stops short of full routing guidance.

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