Skip to main content
Glama

Beggar Bot

gas_price_api

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

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 supplied, the description carries the full behavioral burden and does substantial work: it discloses the exact price ($0.02 USDC via x402), the settlement rule (charged only on a 2xx response, never on input errors), and the supported chain set. That is real transparency about cost and failure semantics that an agent could not infer elsewhere. It stops short of covering rate limits, latency, or what an error payload looks like.

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?

The text is front-loaded with the resource and outputs before moving to invocation, payment and pricing details, and it packs a lot of substance into a short span. It is somewhat run-on as a single dense block, and the 'chain=base or network=base' alias phrasing is noise that does not map to any real parameter. Overall efficient but not tight.

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?

There is no output schema, so the description must describe the return payload, which it does thoroughly by enumerating each metric. With no annotations, it also covers the payment model and error-charging policy, which are the highest-risk behaviors for an agent. The remaining omissions (rate limits, per-chain availability differences, response shape) are minor for a read-style pricing endpoint.

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%, so the three parameters are already documented in structured form and a baseline of 3 applies. The description does add meaning for 'chain' by naming supported networks and the default, but it also introduces confusion by instructing 'Pass chain=base or network=base' when no 'network' parameter exists in the schema. It says nothing about tx_bytes or gas_limit, so it adds little beyond the schema.

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 (gas price / gas fee) and enumerates the returned metrics: gwei price, next base fee, EIP-1559 maxFeePerGas + priority fee tiers, congestion/trend, and USD cost estimates for transfers, USDC payments, swaps and approves. That is concrete enough for an agent to know exactly what it gets. It does not, however, differentiate itself from close siblings such as gas_fee_api, gas_price, or gas_compare, so the agent cannot tell from this text which one to pick.

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 'before you send' implies the moment of use (pre-transaction cost estimation), and the supported-chain list plus default chain give context for invocation. Beyond that there is no explicit when-to-use vs when-not guidance and no mention of the sibling gas tools, which is a meaningful gap given how many gas-related siblings exist. Usage is implied rather than stated.

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.