Skip to main content
Glama

Eth gas prices

eth_gas_prices
Read-onlyIdempotent

Ethereum gas price right now: block number, base fee, gas price and priority fee in gwei, and the estimated cost in ETH and USD of a native transfer and an ERC-20 transfer (Chainlink ETH/USD); plus how the current price ranks against our own samples every 10 minutes over the last 7 days, and the usually cheapest UTC hour. Costs $0.003 USDC on Base via 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": "eth_gas_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "eth"
blockTimeNostring, e.g. "2026-10-22T15:49:59.000Z"
nativeUsdNonumber, e.g. 2398.41
baseFeeGweiNostring, e.g. "0.316485501"
blockNumberNonumber, e.g. 26249161
gasPriceGweiNostring, e.g. "0.316485501"
nativeSymbolNostring, e.g. "ETH"
estimatedCostNoobject
maxPriorityFeeGweiNostring, e.g. "0.000003839"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "baseFeeGwei": {
      +      "description": "string, e.g. \"0.316485501\""
      +    },
      +    "blockNumber": {
      +      "description": "number, e.g. 26249161"
      +    },
      +    "blockTime": {
      +      "description": "string, e.g. \"2026-10-22T15:49:59.000Z\""
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"eth\""
      +    },
      +    "estimatedCost": {
      +      "description": "object"
      +    },
      +    "gasPriceGwei": {
      +      "description": "string, e.g. \"0.316485501\""
      +    },
      +    "maxPriorityFeeGwei": {
      +      "description": "string, e.g. \"0.000003839\""
      +    },
      +    "nativeSymbol": {
      +      "description": "string, e.g. \"ETH\""
      +    },
      +    "nativeUsd": {
      +      "description": "number, e.g. 2398.41"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: the Chainlink ETH/USD price source, a 10-minute sampling cadence over 7 days for the ranking, and a concrete paid-access model ($0.003 USDC on Base via x402) that the agent must know before invoking.

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?

It is a single front-loaded sentence that leads with the core value (current gas price) before the derived metrics and cost. It is dense but every clause carries distinct information; the only mild cost is readability from chaining many items into one sentence.

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 though an output schema exists, the description covers everything an agent needs to decide: data source, freshness/derivation of the weekly ranking, and the x402 payment cost on Base. Nothing material about invocation or expectations is missing for a zero-argument read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes no parameters, so the baseline is 4 and there is no parameter meaning to compensate for. The description correctly spends none of its budget on inputs and instead describes the shape of the result.

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 ('Ethereum gas price') with an explicit temporal scope ('right now') and enumerates the exact fields returned. The 'Ethereum' qualifier alone separates it from the arbitrum/base/optimism/polygon gas price siblings, so an agent can route correctly without opening a schema.

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 implied rather than stated: 'right now' plus the 7-day ranking signals a current-snapshot tool rather than a historical query. There is no explicit when-to-use/when-not guidance and no named alternative such as gas_compare for cross-chain comparison, leaving the agent to infer the boundary.

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