Skip to main content
Glama

estimate_transaction_cost

Estimate the current USD gas cost of a specific Ethereum mainnet action (ETH transfer, ERC-20/USDC transfer, Uniswap swap, or NFT mint), or a custom gas-units amount, at the chosen priority tier.

Input Schema

NameRequiredDescriptionDefault
tierNoPriority tier: low (cheapest), average, or high (fastest).average
actionYesThe transaction type. Use "custom" with gas_units for anything else.
gas_unitsNoRequired when action is "custom": the gas units the transaction uses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does convey meaningful behavior — the estimate is 'current' (live data), denominated in USD, and varies by priority tier — but it is silent on safety profile (read-only, no side effects), auth requirements, and the shape of the returned estimate. Adequate but with real gaps.

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?

One front-loaded sentence that names the computation, the enumeration of valid actions, the custom fallback, and the tier modifier with no filler or repetition.

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?

For a simple 3-parameter read-style estimator with no output schema and no annotations, the description covers the essential inputs and the estimation basis. It would be fully complete only if it stated the read-only/no-side-effect nature or the return shape, but nothing critical to invoking it correctly is missing.

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%, and the schema already documents tier semantics, the action enum, and the custom/gas_units dependency, so the baseline is 3. The description only reinforces the tier concept ('chosen priority tier') and re-lists the actions already in the enum, adding little beyond the schema.

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 (USD gas cost of a named Ethereum mainnet action) and enumerates the supported action set, plus the custom gas-units fallback. It is clearly distinguishable from get_current_gas and get_gas_forecast in intent, though it never names a sibling to sharpen the distinction.

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 implied by the description ('estimate cost of a specific action at a chosen tier'), but there is no explicit when-to-use guidance and no exclusion relative to get_current_gas or best_time_to_transact, which also touch gas-price data. The agent must infer the boundary itself.

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.