Skip to main content
Glama

Agent Data Hub

Gas prices across EVM chains

chain_gas
Read-onlyIdempotent

Current gas price, base fee and suggested priority fee (gwei) plus the cost of a simple transfer in native coin, for one chain or 'all' (Ethereum, Base, Arbitrum, Optimism, Polygon, BSC) in one call. Cached 10s. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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": "chain_gas"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain name, comma-separated list, or 'all' (default all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations by disclosing a 10s cache window, a per-call price ($0.001 in USDC on Base via x402), and a free tier of 10 calls/day. Cost and payment mechanism are exactly the kind of context an agent needs before calling repeatedly, and nothing contradicts the annotations.

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?

Three compact sentences, front-loaded with what is returned and for which chains, then caching and pricing. No filler or repetition of the title.

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?

Even without an output schema, the description enumerates every returned field (gas price, base fee, priority fee, transfer cost) and their units, and covers the only parameter, caching, and cost. An agent has everything needed to call it and interpret the result.

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 single `chain` parameter is already fully documented in the schema, including comma-separated lists and the 'all' default. The description restates that accepted values cover one chain or 'all' and names the concrete chains, but adds no new syntax or edge-case meaning.

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 resource (current gas price, base fee, priority fee, plus simple-transfer cost) with units (gwei, native coin) and the exact chain set. Distinguishable from sibling chain_* tools, which query balances, blocks, logs, or tx data rather than gas markets.

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?

Tells the agent it can query one chain, a list, or 'all' in a single call, which is genuine usage guidance for batching. It does not name an alternative tool or state when not to use it, so it stops short of explicit routing.

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