Skip to main content
Glama

crypto_gas

Get current gas prices and EIP-1559 fee estimates for Ethereum, Base, and Polygon. Uses node-reported data and priority fee percentiles to help optimize transaction costs and timing.

Instructions

[costs $0.002 USDC per call] Get current gas prices and EIP-1559 fee estimates for an EVM chain. EVM gas price API: current gas fees for Ethereum, Base, and Polygon — node-reported gas price plus EIP-1559 estimates from the last 5 blocks: next base fee and 25th/50th/75th-percentile priority fees, in gwei. Read directly from public JSON-RPC nodes with automatic fallbacks. Use for transaction cost estimation, fee optimization, and timing on-chain actions. Cached up to 15 seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain to query.
Behavior5/5

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

No annotations provided, so the description fully discloses behavioral traits: cost per call ($0.002 USDC), caching up to 15 seconds, direct JSON-RPC node reads with automatic fallbacks, and details of returned data (base fee, percentile priority fees). This is comprehensive for a read-only tool.

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 description is well-structured and front-loaded with purpose and cost. Each sentence provides valuable information, though it could be slightly more concise by combining some points. Still efficient.

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?

Given no output schema, the description sufficiently describes the return values (gas price, base fee, percentile priority fees in gwei) and operational details (caching, fallbacks). The single parameter is well-covered. The tool is complete for an agent to use correctly.

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?

The input schema covers 100% of parameters with the enum values and description 'Chain to query.' The description reinforces the valid chains and adds context (EVM chain, three options), but does not add significant meaning beyond the schema.

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 clearly states the verb 'Get' and the resource 'current gas prices and EIP-1559 fee estimates for an EVM chain', and specifies the supported chains (Ethereum, Base, Polygon). It is distinct from sibling tools like crypto_price and defi_tvl.

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?

Explicitly states use cases: 'Use for transaction cost estimation, fee optimization, and timing on-chain actions.' Also provides context on data source and caching, but does not mention alternatives or when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Marysbrain/x402-gateway-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server