Skip to main content
Glama

gas_cost_estimate

Approximate cost of a transaction at a given gas price and gas amount, in ETH and USD at the live ETH price. Lite figures are rounded — exact conversions are a paid lookup.

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": {
      "gwei": "<gwei>",
      "gas_units": "<gas_units>"
    },
    "name": "gas_cost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
gweiYes
gas_unitsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose real behavior: results are approximate and rounded, and USD values depend on a live ETH price fetched at call time (so output varies between calls). It omits the safety/mutation profile (implicitly a read-only calculation), rate limits, and whether the live price lookup can fail or be cached.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero filler: the output description (ETH and USD at live price) is front-loaded and the approximation caveat follows immediately. Every clause conveys operational information.

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

Completeness4/5

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

This is a simple two-parameter pure calculation, and an output schema exists so return structure needn't be explained. The description covers the approximation, the dual currency output, and the live-price dependency — the main remaining gap is how it relates to the adjacent cost-estimation siblings.

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 0% — the schema only supplies titles ('Gwei', 'Gas Units') with no units, ranges, or examples. The description partially compensates by framing the two inputs as 'gas price' (i.e., gwei is a price-per-gas-unit) and 'gas amount', but it never states that gwei is the price denomination versus gas_units being the quantity of gas consumed, nor any bounds or typical values.

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 states a specific computation: approximate transaction cost given a gas price (gwei) and gas amount, returned in both ETH and USD. That is a clear verb+resource statement an agent could match against a request for a cost estimate. It does not differentiate itself from related siblings such as base_tx_costs or base_transfer_cost, which is why it falls 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: the agent can infer this is the tool for 'what would a transaction cost at X gwei with Y gas units' from the parameter list. The clause 'exact conversions are a paid lookup' hints at a boundary condition (this tool is approximate only), but there is no explicit when-to-use/when-not guidance and no pointer to the sibling cost 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