Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Gas tiers and transfer cost in USD on five EVM chains, cheapest first ($0.003)

get_gas_prices

Compare gas fees across Base, Ethereum, Arbitrum, Optimism and Polygon to estimate transaction costs, including fee tiers and 21000-gas transfer totals in native coin and USD.

Instructions

Gas oracle for Base, Ethereum, Arbitrum, Optimism and Polygon: next base fee, slow, standard and fast priority-fee tiers (median of the last 10 blocks), max fee per gas, and the cost of a 21000-gas transfer in native coin and USD via Chainlink. Sorted cheapest first. Not charged for bad input or when every chain fails. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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": "get_gas_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainsNoComma list, any of: base,ethereum,arbitrum,optimism,polygon. Default: all five.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the payment model ($0.003 USDC per call over x402 on Base from X402_PRIVATE_KEY), that failed calls and bad input are not charged, that no API key is needed, and that figures are medians over the last 10 blocks. This matches the readOnlyHint=false / non-idempotent annotations, since a paid x402 call moves funds.

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 chain list and returned fields lead, followed by sorting and then cost/charging terms, so the important content is front-loaded. It loses some points for redundancy: the $0.003 price appears twice and the no-charge-on-failure rule is stated in two places.

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?

For a one-parameter read tool with no output schema, the description covers return fields, sort order, defaults, pricing, payment mechanics, and failure charging. Nothing an agent needs before calling is missing.

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 `chains` parameter already documents the accepted comma list and the all-five default. The description only restates the five chain names and the default, adding no syntax or edge-case detail (e.g. behavior on an unknown chain name). Baseline 3 applies.

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 description names the resource and domain precisely: a gas oracle covering Base, Ethereum, Arbitrum, Optimism and Polygon, and enumerates the exact values returned (next base fee, slow/standard/fast tiers, max fee, 21000-gas transfer cost in native and USD). An agent can tell this apart from get_chain_head or get_crypto_prices 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?

Usage is implied rather than stated: the tool is for gas estimation on five EVM chains, defaults to all five, and is sorted cheapest first. There is no explicit when-to-use or when-not-to-use guidance, and no named alternative (e.g. get_chain_head) for agents that only need a block head.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.