Skip to main content
Glama

gas_compare

What a transaction costs right now on Base, Ethereum, Arbitrum, Optimism and Polygon, side by side: gas price, base and priority fee, USD cost of a native transfer, an ERC-20 transfer and a DEX swap (L2 L1-data fees included), the cheapest chain for each, and how each chain's gas price ranks against its own last 7 days of 10-minute samples, with the usually cheapest UTC hour. Costs $0.005 USDC on Base via x402.

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_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainsNoComma-separated subset: base, eth, arbitrum, optimism, polygon (default all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description does substantial work: it declares real-time pricing ('right now'), L2 L1-data fee inclusion, historical ranking basis (7 days of 10-minute samples), the usually cheapest UTC hour, and the $0.005 USDC x402 payment cost. It still omits explicit read-only/no-side-effect language and rate-limit or error behavior, but the core behavioral profile is unusually well disclosed.

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?

It is a single, front-loaded sentence that lists the returned metrics efficiently. The colon-delimited list is dense but not repetitive; it could be split for readability but every clause contributes.

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?

No output schema exists, so the description must convey the response content; it does so by enumerating the fee fields, USD transfer/swap costs, cheapest-chain result, historical rank and cheapest-hour result. Combined with the fully documented chains parameter, it is complete enough to call correctly.

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?

The sole optional 'chains' parameter is fully described in the input schema (100% coverage), including the comma-separated subset and default-all behavior. The description itself adds no parameter-level meaning beyond the schema, so baseline 3 applies.

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?

States a specific comparison operation over a named resource: transaction costs across Base, Ethereum, Arbitrum, Optimism and Polygon side by side. The enumerated return metrics and 'cheapest chain' scope distinguish it from single-chain gas price siblings.

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?

The 'side by side' and 'cheapest chain for each' framing makes the cross-chain comparison use case clear, implying it is for comparing chains rather than a single-chain lookup. However, it does not explicitly name or route to/from the chain-specific gas tools, nor state when not to use it.

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