Skip to main content
Glama

Base gas prices

base_gas_prices
Read-onlyIdempotent

Base 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": "base_gas_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
noteNostring, e.g. "Excludes Base's L1 data fee, which adds a small amount per
chainNostring, e.g. "base"
blockTimeNostring, e.g. "2026-10-22T15:49:57.000Z"
nativeUsdNonumber, e.g. 2388.88
baseFeeGweiNostring, e.g. "0.005"
blockNumberNonumber, e.g. 52947425
gasPriceGweiNostring, e.g. "0.006"
nativeSymbolNostring, e.g. "ETH"
estimatedCostNoobject
maxPriorityFeeGweiNostring, e.g. "0.001"

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.005\""
      +    },
      +    "blockNumber": {
      +      "description": "number, e.g. 52947425"
      +    },
      +    "blockTime": {
      +      "description": "string, e.g. \"2026-10-22T15:49:57.000Z\""
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"base\""
      +    },
      +    "estimatedCost": {
      +      "description": "object"
      +    },
      +    "gasPriceGwei": {
      +      "description": "string, e.g. \"0.006\""
      +    },
      +    "maxPriorityFeeGwei": {
      +      "description": "string, e.g. \"0.001\""
      +    },
      +    "nativeSymbol": {
      +      "description": "string, e.g. \"ETH\""
      +    },
      +    "nativeUsd": {
      +      "description": "number, e.g. 2388.88"
      +    },
      +    "note": {
      +      "description": "string, e.g. \"Excludes Base's L1 data fee, which adds a small amount per "
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, but the description adds genuinely new operational context: the data source for USD conversion (Chainlink ETH/USD), the sampling basis for the ranking (own samples every 10 minutes over 7 days), and notably the paid access model ($0.003 USDC on Base via x402). The x402 cost disclosure is exactly the kind of pre-call knowledge an agent needs.

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?

Single front-loaded statement with a clear colon-delimited field list and parenthetical source attribution. It is dense, and part of the field enumeration duplicates the output schema, but every clause carries information and nothing is buried at the end.

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?

With an output schema present, the description needn't spell out return structure, and it covers the essentials: chain, freshness, comparison window, conversion source, and cost per call. The only missing piece is guidance on when to prefer this over gas_compare or the other chain-specific variants.

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 zero parameters, so there is nothing for the description to disambiguate; baseline applies. The description correctly does not invent inputs and instead spends its words on what is returned.

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 and chain ('Base gas price right now') and enumerates the concrete outputs: block number, base fee, gas price, priority fee in gwei, and USD/ETH transfer costs. This cleanly separates it from sibling chain tools such as eth_gas_prices and arbitrum_gas_prices without needing to name 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?

The phrase 'right now' implies this is a real-time quote for Base only, which gives implied usage context. There is no explicit when-to-use/when-not guidance and no pointer to gas_compare or the other per-chain gas tools for cross-chain or historical comparison.

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