Skip to main content
Glama

chain_gas

Query current gas price and base fee for Base, Ethereum, or Arbitrum to estimate transaction costs before sending a transaction.

Instructions

Current gas price and base fee on Base, Ethereum, or Arbitrum.

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
chainNobase, ethereum, or arbitrumbase

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It reveals that two metrics (gas price and base fee) are returned, but says nothing about freshness/caching, units (gwei vs wei), whether base fee is absent on non-EIP-1559 chains, or that this is a read-only call.

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?

One sentence, front-loaded with the resource and followed by the qualifying options. No filler, no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter read tool this is close to adequate, but with no output schema the agent still cannot tell the return shape or units of the gas price and base fee values. That gap is small but real for a tool whose whole purpose is returning two numbers.

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 chain parameter already documents its accepted values and default (base). The description merely repeats the same three chain names, adding no meaning beyond the schema, so the baseline of 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 (gas price and base fee) with a clear time scope ("current") and enumerates the supported chains. It is naturally distinguishable from siblings like chain_balance and chain_tx, though it never explicitly contrasts itself with them.

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: the word "current" signals a point-in-time read rather than a historical query, which is a useful cue. There is no explicit when-to-use guidance, no prerequisites, and no mention of when a sibling (e.g. chain_tx, which may also report fees) would be preferable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.