Skip to main content
Glama

APEX x402 Full MCP Hub

Base gas

base_gas

Base gas price. What a transaction on Base costs right now in dollars, L1 data fee included: ETH transfer, USDC transfer and Uniswap swap, from real receipts. $0.001 per call over 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": "base_gas"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentNoa signed x402 payment (the same base64 payload you would put in the PAYMENT-SIGNATURE header). Pass it here and the purchase completes inside this tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that values are dollar-denominated, derived from real receipts, inclusive of the L1 data fee, and that calls are metered at $0.001 via x402 with the payment completing inside the call. It does not say what happens on a call without payment (error vs. 402 challenge) or how fresh the values are.

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?

Three tight sentences with the core purpose front-loaded and pricing last; the colon-separated enumeration is efficient. The opening fragment 'Base gas price.' is near-tautological with the name but is immediately paid off by specifics.

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?

No output schema exists, so the description must cover return semantics, and it does: dollar costs for three transaction types including the L1 data fee. The only gap is the exact response shape (whether a per-type breakdown or a single figure is returned) and payment-failure behavior.

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, and the description adds value by explaining the payment mechanism (x402) and the $0.001 price that motivates the sole 'payment' parameter, clarifying why and when it must be supplied.

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?

Names a specific chain and resource ('Base gas price') plus the concrete measurements returned (ETH transfer, USDC transfer, Uniswap swap, in dollars, L1 data fee included, from real receipts). The chain naming effectively separates it from arc_gas and generic evm_gas_estimate, though it never explicitly contrasts with those siblings.

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 'right now' framing plus the enumerated transfer types implies the use case (current cost of common Base transactions), but there is no explicit when-to-use/when-not guidance and no named alternative such as arc_gas or evm_gas_estimate.

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.