Skip to main content
Glama

draconic21 x402 Data Tools

Base gas price (public JSON-RPC, no vendor)

gas_price
Read-onlyIdempotent

[PAID — 0.002 USDC on Base via x402] Current Base gas market read live from Base's own public JSON-RPC, not a hosted gas-oracle vendor — legacy gas price, EIP-1559 base fee, a suggested priority/max fee (all in gwei), and a plain-transfer cost estimate. Base mainnet only (eip155:8453). Cached 30 seconds across all callers. $0.002 USDC on Base, paid via x402 by the calling agent's own wallet. Call with no payment_header first to receive the payment requirements; your own wallet pays, never this server's.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoOnly 'base' is supported today; omit or pass "base".
payment_headerNoOptional. Omit on your first call to receive the x402 payment challenge for free. After your own wallet/x402 client signs against that challenge, call this same tool again with the SAME business arguments plus this field set to the header your x402 client produced (typically { name: "PAYMENT-SIGNATURE", value: "<base64 payload>" }). This server never holds a wallet and never pays on your behalf.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the read-only/idempotent/ open-world annotations, the description discloses that results are cached 30 seconds across all callers, the exact cost (0.002 USDC via x402), and the critical trust boundary that 'your own wallet pays, never this server's.' These are precisely the behavioral facts annotations cannot carry.

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 [PAID] tag and price are front-loaded, and the sentences are information-dense with little padding. The payment/wallet point is stated twice ('paid via x402 by the calling agent's own wallet' and 'your own wallet pays, never this server's'), a minor redundancy in an otherwise tight description.

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?

With no output schema, the description compensates by enumerating the returned values, the units (gwei), the chain scope, the caching behavior, and the full payment handshake. An agent has everything it needs to invoke this tool correctly on the first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds sequencing meaning the schema cannot: that payment_header should be omitted on the first call and supplied on the retry with the same business arguments. It also pins the chain to base mainnet, reinforcing the enum.

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 verb and resource ('Current Base gas market read live from Base's own public JSON-RPC') and enumerates the returned values (legacy gas price, EIP-1559 base fee, priority/max fee, transfer cost estimate), clearly distinguishing it from a hosted gas-oracle vendor. It does not explicitly differentiate itself from the sibling gas_price_preview, so it falls just short of a 5.

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 two-step x402 invocation pattern is spelled out concretely: 'Call with no payment_header first to receive the payment requirements' then call again with the signed header. It also scopes the tool to 'Base mainnet only (eip155:8453).' It offers no explicit comparison to the free gas_price_preview alternative, so it stops short of a 5.

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