Skip to main content
Glama

Beggar Bot

gas_price

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

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.7/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 well: it discloses paid pricing ($0.02 USDC via x402) and the settlement rule (charged only on 2xx, never on input errors). It does not mention rate limits, auth prerequisites beyond payment, or caching behavior.

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?

Effectively one dense but front-loaded paragraph: purpose and returned fields first, payment terms last. The 'chain=base or network=base' phrasing adds a small amount of confusing noise.

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?

Without an output schema or annotations, the description still enumerates the returned metrics (gwei price, next base fee, tiered maxFeePerGas/priority fee, congestion/trend, USD cost estimates) plus billing behavior. Only exact response shape and pagination/edge behavior are unstated, which is acceptable for a simple 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 coverage is 100%, so the baseline is 3. The description adds that chain can be passed and gives Base as the default, but introduces an alias 'network=base' that does not exist in the schema and gives no elaboration on tx_bytes or gas_limit beyond their names.

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/resource set: current gas price in gwei, next base fee, EIP-1559 tiers, congestion/trend, and USD cost of a native transfer, USDC payment, swap or approve. It also names the supported chains. It does not explicitly differentiate itself from siblings like gas_price_api or gas_fee, but the breadth (multi-chain + pre-tx USD cost) is fairly identifying.

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 by 'before you send,' which frames it as a pre-transaction cost check. There are no exclusions or named alternatives, and no guidance on when to prefer gas_compare or gas_fee_api over this tool.

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.