Skip to main content
Glama

Live Gas Price

crypto_gas_price

Fetch the live gas price from public RPC nodes on Base or Ethereum: wei per unit gas, converted to gwei, with a USD estimate for a standard 21,000-gas transfer using your own ETH price input. No API key needed. Use this when an agent needs to current gas price in gwei and USD, straight from the chain. x402 price $0.02/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain
ethPriceUsdYesETH price (USD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries full burden and does disclose meaningful operational traits: no API key required, live on-chain sourcing, and a paid x402 endpoint at $0.02/call (USDC, eip155:8453). It omits rate limits, freshness/caching, and error behavior, but auth and cost — the traits most likely to break an invocation — are covered.

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?

Front-loaded with the core capability and output format, then supporting details (no key, usage cue, price). Efficient overall, but the sentence "Use this when an agent needs to current gas price" contains a grammatical error that slightly hurts readability.

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?

For a 2-parameter, no-output-schema tool, the description is nearly self-sufficient: it explains the source, the derived outputs (gwei and USD), the required user-supplied ETH price, and the payment model. Only failure modes and freshness are unaddressed.

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%, so the baseline is 3. The description adds modest value by clarifying that ethPriceUsd is a caller-supplied value ("using your own ETH price input") rather than a fetched one, and by confirming the chain enum scope, but it adds no format or constraint details beyond the schema.

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?

States a specific verb and resource ("Fetch the live gas price") plus the data source (public RPC nodes) and the two supported chains, and even describes the output shape (wei→gwei with USD estimate for a 21,000-gas transfer). It does not, however, distinguish itself from close siblings like crypto_gas_fee_calculator or crypto_wei_eth_converter, which an agent might reasonably confuse it with.

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?

"Use this when an agent needs... gas price in gwei and USD, straight from the chain" gives clear when-to-use context. There is no when-not guidance and no explicit routing to the gas-fee or wei-converter siblings, so alternatives are left to inference.

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