Skip to main content
Glama

chain_gas_compare

Read-only

Multi-chain gas comparison — Live gas price, base fee, priority fee and block utilization on base, ethereum, arbitrum, optimism and polygon, with the cost of a native transfer, ERC-20 transfer, DEX swap and NFT mint in native units and USD (USD from Chainlink ETH/USD and POL/USD read on-chain), ranked cheapest first. chains= optional comma list. L2 figures are execution fees (L1 data fee noted). Price: $0.002 USDC (Base, via x402).

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": {
      "chains": "<chains>"
    },
    "name": "chain_gas_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainsYesbase,ethereum,arbitrum,optimism,polygon

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Goes beyond the annotations (readOnly/openWorld/non-destructive) by disclosing that the call is paid — $0.002 USDC on Base via x402 — and by flagging that L2 figures are execution fees with L1 data fee noted separately, plus the on-chain Chainlink oracle source for USD values. It stops short of describing failure behavior, rate limits, or staleness of the prices.

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?

Purpose and supported chains are front-loaded, and every clause carries real information (returned metrics, ranking order, oracle source, payment terms). It is a single dense run-on sentence, though, so the caveats about L2 execution fees and pricing are easy to skim past.

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?

With no output schema, the description does a good job enumerating the returned metrics and units, and the payment disclosure is essential context for a paid endpoint. However, the required-vs-optional contradiction on 'chains' and the absence of any error or fallback behavior keep it from being complete for a paid cross-chain call.

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?

The schema already documents the single parameter at 100% coverage, so the baseline is 3, but the description calls 'chains' an 'optional comma list' while the schema marks it required. That mismatch is actively misleading and could cause an agent to omit the argument and hit a validation error; the only added value is confirming the comma-separated syntax.

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?

Names a specific verb and resource ('Multi-chain gas comparison') and enumerates exactly what is returned: live gas price, base fee, priority fee, block utilization, plus cost of native transfer, ERC-20 transfer, DEX swap and NFT mint in native units and USD. The 'ranked cheapest first' ordering and the explicit chain list make it easy to separate from a single-chain gas estimator.

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 comparison framing — an agent infers it should call this when it wants cross-chain gas prices rather than a single quote — but there is no explicit when-to-use/when-not statement and no named alternative (e.g., chain_estimate_gas) to route against. It also does not say what happens for chains outside the supported five.

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