Skip to main content
Glama

Current gas price on Base: what a transaction costs in USD

base_gas
Read-only

Current gas price on Base and what a transaction costs in USD right now: live base fee and priority fee in gwei, suggested maxFeePerGas and maxPriorityFeePerGas in wei for an EIP-1559 transaction, how full the latest block is, and the estimated execution fee for an ETH transfer and an ERC-20 transfer. Use before sending a transaction on Base or to decide whether to wait for lower fees. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
onlyNoOptional: comma-separated top-level result keys to keep, for a smaller answer (for example only=price,symbol); unknown keys are ignored and an empty match returns the full result

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / only / description
      Previous value: -"Optional: comma-separated top-level result keys to keep, for a smaller answer (for example only=fastestFee,halfHourFee); unknown keys are ignored and an empty match returns the full result"New value: +"Optional: comma-separated top-level result keys to keep, for a smaller answer (for example only=price,symbol); unknown keys are ignored and an empty match returns the full result"
  2. Changed1 schema field changed
    • addedInput schema / properties / only
      Added value: +{
      +  "description": "Optional: comma-separated top-level result keys to keep, for a smaller answer (for example only=fastestFee,halfHourFee); unknown keys are ignored and an empty match returns the full result",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=false and destructiveHint=false. The description reinforces this ('reads or computes only and changes nothing') and adds genuinely new context: per-call pricing ($0.002 via x402 USDC or card key), first 10 free, failed calls free, and that repeats are not free — consistent with idempotentHint=false. With annotations and pricing both covered, this is solid, though it stops short of describing data freshness latency or rate-limit behavior on paid repeats.

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 front-loaded with the core purpose followed by the field inventory, then usage, then billing and safety. The field enumeration is dense but each item is informative for an agent deciding whether one call suffices. Slight redundancy appears between 'reads or computes only and changes nothing' and the readOnly annotations, costing a bit of length.

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?

There is no output schema, so the description carries the full burden of explaining return values, which it does thoroughly (fees in gwei and wei, block fullness, USD costs per transfer type). It also covers cost, auth mechanism, free-trial behavior, and side-effect safety — everything an agent needs before invoking a metered read tool.

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 description coverage is 100% and the single optional 'only' parameter is fully documented in the schema, so the baseline of 3 applies. The description adds no guidance about the 'only' projection parameter or typical key names, so it does not exceed what the schema already provides.

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 verb+resource ('Current gas price on Base') and then enumerates exactly what is returned: base fee and priority fee in gwei, suggested maxFeePerGas/maxPriorityFeePerGas, block fullness, and USD execution-fee estimates for ETH and ERC-20 transfers. That level of specificity clearly separates it from history tools like base_gas_history, but it never names base_estimate_gas, so the nearest sibling boundary is left implicit.

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 gives clear positive usage context: 'Use before sending a transaction on Base or to decide whether to wait for lower fees.' That tells an agent the decision it supports. However, it offers no exclusions or named alternatives (e.g., when to prefer base_estimate_gas for a specific transaction), so the agent must infer the boundary from sibling names alone.

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