Skip to main content
Glama

Beggar Bot

gas_fee

Gas price and gas fee API for Base, Ethereum, Optimism, Arbitrum and Polygon: current gas price in gwei, next base fee, slow/standard/fast EIP-1559 maxFeePerGas + priority fee, congestion and trend, and the USD cost of a native transfer, USDC payment, swap or approve before you send. Pass chain=base or network=base. Payment settles only after a successful (2xx) response; input errors are never charged. Paid: $0.02 USDC 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": "gas_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), optimism, ethereum, arbitrum, polygon, base-sepolia
tx_bytesNooptional tx size bytes
gas_limitNooptional custom gas limit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses the payment model ($0.02 USDC via x402), the billing rule that charges settle only on a 2xx response and input errors are never charged, and the default chain. That is exactly the kind of non-obvious behavior an agent needs before invoking a paid endpoint. It omits rate limits, caching, and freshness of the gas data, which keeps it from a 5.

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?

Three sentences, each doing a distinct job: capability enumeration first, then the parameter hint, then the payment/billing terms. No filler, and the most decision-relevant information is front-loaded.

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 no output schema and no annotations, the description compensates by enumerating the returned metrics in detail and stating the pricing and billing conditions. The remaining gap is that it does not describe the response shape (e.g., per-chain fields, units for the USD estimates) or clarify the tx_bytes/gas_limit inputs for a tool with three optional parameters.

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 schema already documents chain, tx_bytes, and gas_limit, making 3 the baseline. The description confirms the default (chain=base) but adds a confusing instruction to pass "network=base" even though no network property exists in the schema, and it says nothing about when to supply tx_bytes or gas_limit.

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 and enumerates exactly what the tool returns: current gas price in gwei, next base fee, slow/standard/fast EIP-1559 maxFeePerGas plus priority fee, congestion/trend, and USD costs for transfer/USDC/swap/approve. That is far more than a restatement of the name. It stops short of a 5 because it never contrasts itself with near-identical siblings such as gas_price, gas_price_api, or gas_compare.

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?

"Before you send" implies the usage context (pre-transaction cost estimation) and the supported chains are listed, which is real guidance. However, there is no explicit when-not guidance and no routing to the several sibling fee tools that overlap heavily (gas_fee_api, gas_price, gas_compare, next_base_fee), so an agent must guess which one to pick.

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.