Skip to main content
Glama

gas

gas
Read-only

Live gas prices on Ethereum, Base, Arbitrum, Optimism and Polygon: gas price, next base fee, slow/normal/fast priority tips, and USD cost of a simple transfer. Costs $0.002 USDC per call (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"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainsNoComma list; default all five

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnlyHint=true and openWorldHint=true, so safety is established. The description adds genuinely useful non-obvious behavior: a per-call charge of $0.002 USDC via x402, which the agent must know before invoking. It does not mention rate limits, caching, or data freshness beyond 'live'.

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 sentences, both load-bearing: the first front-loads scope and returned fields, the second carries the pricing constraint. No filler and nothing buried.

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 must carry the return shape, and it does: gas price, next base fee, slow/normal/fast priority tips, and USD cost of a transfer. The only parameter is fully covered by the schema, and the payment requirement is disclosed, so an agent has everything needed to call it.

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% for the single optional 'chains' parameter, so baseline is 3. The description restates the default set of five chains but adds no syntax, delimiter, or error behavior beyond what the schema already documents.

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?

The description names a specific resource (live gas prices), enumerates the exact five chains covered (Ethereum, Base, Arbitrum, Optimism, Polygon), and lists the concrete metrics returned. This distinguishes it implicitly from near-name siblings like energy_gas_prices (natural gas) and btc_fees without the agent needing to open a schema.

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 content ('live gas prices'), so an agent knows the general context, but there is no explicit when-to-use/when-not guidance and no alternatives named against siblings such as btc_fees, defi_fees, or solana_priority_fee. The cost disclosure is the only routing signal.

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