Skip to main content
Glama

Chain Gas

chain_gas
Read-only

Current gas on Base (default) or Ethereum: gas price and base fee in gwei, and what a typical ERC-20 transfer costs in ETH and US dollars. Costs USD 0.001 per call, paid with x402 (USDC on Base); calls that fail are not charged.

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
networkNoBlockchain (default base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), yet the description adds genuinely new operational facts: the call costs USD 0.001, payment is via x402 in USDC on Base, and failed calls are not charged. That billing and failure-handling detail is exactly the kind of context annotations cannot convey. It stops short of 5 only because it does not say how fresh the gas figures are or whether the values are cached.

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 tight sentences: the first front-loads what is returned and in what units, the second covers cost and payment. Every clause (gwei units, ETH and USD, default network, no charge on failure) carries information an agent would otherwise have to guess.

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 present, the description carries the burden of describing return values and does so explicitly: gas price, base fee, and transfer cost in both ETH and USD. Combined with the pricing and failure policy, an agent has everything needed to decide to call it and to 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?

There is a single parameter with 100% schema description coverage and an enum of base/ethereum, so the schema already carries the semantics. The description's mention of 'Base (default)' corroborates the default but adds no format or behavioral detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 and measurement: current gas price and base fee in gwei for Base or Ethereum, plus the derived cost of a typical ERC-20 transfer. That is far more specific than the sibling chain_* tools (balance, token, tx), so an agent can pick it without opening the schema.

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?

It states the default network (Base) and the alternative (Ethereum), which is the main selection decision for this tool, and the 'typical ERC-20 transfer cost' framing makes the use case (estimating transaction cost) clear. It does not explicitly say when to prefer this over chain_tx or chain_balance, so it falls short of a full when/when-not treatment.

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