Skip to main content
Glama

PreFlight402 — Web3 Risk & x402 Audit

Live Multi-Chain EVM Gas Price & Swap Fee USD Oracle ($0.005 USDC)

gas_oracle
Read-onlyIdempotent

Paid via x402 ($0.005 USDC on Base): fetches live RPC gas prices across Base, Ethereum, Arbitrum, Polygon, BSC, and Optimism with USD swap fee estimates.

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

Input Schema

NameRequiredDescriptionDefault
chainNoTarget chain slug or 'all' for all 6 EVM chains (defaults to all).all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds the genuinely non-obvious behavior: the call is paid via x402 at $0.005 USDC on Base and returns live rather than cached values. It stops short of saying what happens on payment failure or how fresh the 'live' data is.

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?

A single dense sentence with the cost and payment rail front-loaded ahead of the capability, so the agent sees the price constraint first. Slight jargon load ('x402', 'RPC') without expansion, but nothing is wasted.

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?

For a one-parameter read-only lookup this covers what is fetched, from where, and at what price, and annotations handle the safety semantics. The remaining gap is the payment handshake and failure behavior, which matter for an agent that may call it blind.

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 'chain' parameter is fully described with its enum and default, so the schema does the work. The description only restates the chain list already present in the enum, adding no extra meaning such as whether 'all' costs more or returns partial failures.

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?

States a specific verb and resource ('fetches live RPC gas prices ... with USD swap fee estimates') and enumerates the six covered chains, so the agent knows exactly what data comes back. No sibling performs gas/swap-fee lookup, so it is distinguishable without opening the schema.

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 description implies the usage context (a live, per-request paid price feed) but never states when to call it versus when not to, nor any prerequisite such as needing an x402-capable client before the call will succeed. Usage is inferable but not guided.

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.