Skip to main content
Glama

x420_chain_gas-oracle

Read-onlyIdempotent

Multichain gas oracle: Next base fee and slow / standard / fast priority-fee tiers (10th, 50th, 90th percentile tips over the last 10 blocks) with suggested max fees, on base, ethereum, arbitrum, optimism, polygon, avalanche, bsc, base-sepolia. Source: publicnode JSON-RPC. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.001 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: base_fee_next_gwei, slow/standard/fast{priority_fee_gwei, max_fee_gwei}, legacy_gas_price_gwei.

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": "x420_chain_gas-oracle"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkNoone of base, ethereum, arbitrum, optimism, polygon, avalanche, bsc, base-sepolia (default base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses the critical behavior that this hosted instance does NOT return the deliverable and instead returns payment instructions, names the exact cost ($0.001 USDC per call on Base), identifies the data source (publicnode JSON-RPC) and the lookback window (last 10 blocks). It even describes the paid deliverable's field names, which is unusually detailed behavioral context for a read-only tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the payment mechanics are useful, but the body is a dense run-on that interleaves purpose, sources, a legal disclaimer, pricing, protocol steps and the deliverable spec in one block. The 'Not professional, legal, insurance...' disclaimer is boilerplate that consumes attention without helping invocation, and the payment protocol sentences could be tighter.

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?

Although there is no output schema, the description compensates by enumerating the returned JSON fields (base_fee_next_gwei, priority/max fee per tier, legacy_gas_price_gwei). Combined with network coverage, data source, price and the two payment paths, an agent has everything needed to decide to call it and to complete the x402 handshake.

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% and the single network parameter already carries its own description and default, so the schema does the heavy lifting. The description's enumeration of supported networks largely duplicates the enum listed in the schema, adding only the confirmation that 'base' is the default; a 3 baseline is appropriate.

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?

The first sentence names a specific resource (multichain gas oracle) and enumerates exactly what is returned: the next base fee plus slow/standard/fast percentile tiers and suggested max fees. It also lists the eight supported networks, so an agent knows precisely the scope of the data and can distinguish it from generic chain-query siblings.

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?

The description spells out the full calling procedure for the hosted variant (GET the url, read PAYMENT-REQUIRED from the 402, retry with PAYMENT-SIGNATURE under x402 v2) and names an alternative path (run the local x420-mcp server with your own wallet key to pay automatically). What it does not do is say when to prefer this oracle over other gas/chain tools or what the prerequisites are beyond having USDC on Base, so it stops short of full when/when-not guidance.

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