Skip to main content
Glama

gas

gas

Live gas prices across chains in one call: gas price, base fee and priority fee (gwei), latest block, and the cost of a plain transfer, for Base, Ethereum, Arbitrum One, OP Mainnet, Polygon PoS, BNB Smart Chain, Avalanche C-Chain. Price: $0.001 USDC per successful 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-separated chains (default all: base,ethereum,arbitrum,optimism,polygon,bsc,avalanche)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden and does meaningful work: it enumerates the exact return fields and, unusually, discloses the billing model ($0.001 USDC per successful call via x402), which materially affects whether an agent should call it freely. It still omits freshness/latency expectations and failure behavior for unsupported chain names.

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?

A single front-loaded sentence leads with the resource and chains, then the returned fields, then the price. Every clause is informative and nothing is filler. It is dense but not bloated; splitting the return fields and the billing note would improve scannability slightly.

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?

There is no output schema, so the description must describe returns, and it does so field by field. Combined with the fully documented single parameter, an agent has enough to call it correctly. Only rate limits and per-chain failure handling are 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 coverage is 100% and the single chains parameter already documents the comma-separated format and the default-all behavior, so the schema does the heavy lifting. The description lists the same seven chain names as prose, which corroborates but does not extend the schema, so the baseline 3 applies.

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 names a specific resource and scope: live gas prices across seven named chains, returning gas price, base fee, priority fee, latest block, and plain-transfer cost. That is far more specific than the bare name "gas". It does not, however, explicitly distinguish itself from plausible siblings such as tx or balance, so it stops 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: "in one call" signals this replaces fanning out per-chain queries, and the schema note says the default is all chains. There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named for narrower questions such as a single chain's fee estimate.

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