Skip to main content
Glama

Agent Margin Router

Gas Fees

gas_fees
Read-only

Live EIP-1559 gas fees (slow/standard/fast tiers) plus USD cost per transaction type (transfer, ERC-20 transfer, swap, NFT mint) for Base, Ethereum, Arbitrum, Optimism and Polygon. Aggregated from public RPC nodes – no API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNobase | ethereum | arbitrum | optimism | polygon (default base).
walletNoYour EVM wallet address (0x...). Unlocks the free tier (3 calls per wallet).
api_keyNoOptional AMR enterprise API key.
x_paymentNoOptional signed x402 payment payload (base64 JSON) for USDC/USDT on Base.
max_age_secondsNoMax cache age (default 10).

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 cover only readOnly and openWorld, so the description adds substantial unseen context: public-RPC aggregation with no API key, pay-per-call in USDC/USDT on Base via x402, and a 3-call free tier per wallet. It stops short of stating rate limits, cache behavior, or failure modes on unpaid calls, which would be needed for a 5.

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 dense sentences, front-loaded with what is returned and followed by data source and payment mechanics; each sentence carries information. Slightly compressed by abbreviated phrasing ('3 free calls per wallet'), but there is no filler.

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?

With no output schema, the description steps in to describe the return shape (tiered fees plus per-transaction USD costs) and the chains covered, and it explains the payment prerequisites an agent must satisfy. Cache/pagination and error semantics for unpaid calls remain unspecified, so it is strong but not exhaustive.

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 description coverage is 100% and the schema already documents every parameter, including the default chain 'base' and the wallet-unlocks-free-tier behavior that the description merely echoes. The description adds no format, range, or interaction detail beyond what the schema provides, so the 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 concrete resource (live EIP-1559 gas fees with slow/standard/fast tiers), the derived output (USD cost per transaction type across transfer, ERC-20 transfer, swap, NFT mint), and the exact chain set. An agent can tell this apart from token_price or market_spread without opening any 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 only implied: an agent infers it should call this when it needs gas estimates or per-transaction cost data. There is no explicit statement of when to prefer this over token_price/market_spread, and no mention of when not to use it (e.g., for historical fees).

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.