Skip to main content
Glama

evm_get_gas_oracle

Retrieves slow, standard, and fast gas price recommendations for supported EVM chains, helping users choose transaction timing and balance cost against confirmation speed.

Instructions

Get gas price recommendations with slow/standard/fast tiers for optimal transaction timing.

Provides three gas price options based on network conditions. Slow for low-priority transactions, standard for typical operations, fast for urgent transactions. Uses EIP-1559 base + priority fee structure.

CRITICAL RULES:

  • Read-only operation (no gas cost)

  • Prices change every block

  • Fast tier pays significant premium

  • Slow tier may delay confirmation

  • Base fee determined by network, not user

  • Priority fee tips validators

PARAMETERS:

  • chain: EVM chain to query (required)

    • Gas prices vary dramatically by chain

    • Ethereum: High gas (10-100+ gwei)

    • Polygon: Low gas (30-50 gwei)

    • Arbitrum: Very low gas (<1 gwei)

EXAMPLES: ✅ Get Ethereum gas tiers for transaction: {chain: "ethereum"}

✅ Check Polygon gas for batch operation: {chain: "polygon"}

✅ Find cheap gas window on BSC: {chain: "bsc"}

SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559

CRITICAL GAS CONSIDERATIONS:

  • Ethereum: High gas costs, use gas oracle for timing

  • Polygon/BSC: Very low gas, safe for frequent transactions

  • Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum

  • Avalanche: Dynamic fees, can spike during congestion

  • Always check gas price before executing transactions

TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.

OUTPUT STRUCTURE: • slow: {baseFee, priorityFee, total, estimatedTime} • standard: {baseFee, priorityFee, total, estimatedTime} • fast: {baseFee, priorityFee, total, estimatedTime} • timestamp: When prices were fetched

COMMON MISTAKES:

  • Using fast tier for non-urgent transactions (overpaying)

  • Using slow tier for time-sensitive operations

  • Not refreshing prices before submission

  • Ignoring base fee (it's required, not optional)

  • Comparing prices across different chains

USE CASES:

  • Choose gas tier based on urgency

  • Display price options to users

  • Optimize transaction costs

  • Schedule transactions for low gas periods

  • Calculate total transaction cost estimates

Running on Linux.

LINUX-SPECIFIC NOTES:

  • Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)

  • Python 3 is typically 'python3' command

  • GNU tools are standard

  • Use 'xdg-open' command to open files/applications

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "<chain>"
    },
    "name": "evm_get_gas_oracle"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does reasonably well: it declares read-only behavior, states prices change every block, explains the EIP-1559 base/priority split, and warns that base fee is network-determined rather than user-set. It omits caching/rate-limit behavior and error handling, and the embedded Linux package-manager notes are irrelevant noise.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core is front-loaded well, but the body is heavily padded: the chain list is duplicated between SUPPORTED EVM CHAINS and CRITICAL GAS CONSIDERATIONS, and the OS/environment block about apt/yum/pacman and xdg-open is entirely unrelated to a gas oracle. Roughly half the text could be removed without losing call-relevant information.

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?

For a one-parameter read tool, the definition covers purpose, per-chain context, output shape (slow/standard/fast with baseFee, priorityFee, total, estimatedTime, timestamp), and pitfalls, so no output schema is needed. The only real gap is sibling disambiguation among the many gas-related tools.

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% for the single chain parameter, so the baseline is 3. The description adds genuine meaning beyond the enum by giving per-chain gas expectations (Ethereum 10-100+ gwei, Polygon 30-50 gwei, Arbitrum <1 gwei) and per-chain finality notes, which helps the agent pick and interpret the parameter.

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?

Opens with a specific verb and resource: "Get gas price recommendations with slow/standard/fast tiers," and the tier model is immediately concrete. It does not, however, distinguish itself from close siblings like evm_get_gas_price, evm_get_base_fee, or evm_get_fee_history, so an agent must infer which gas tool to pick.

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 USE CASES and COMMON MISTAKES sections plus "Always check gas price before executing transactions" give clear context for when to call it and how to interpret tiers by urgency. What is missing is any when-not guidance or explicit routing against the many sibling gas tools.

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

Deploy Server

Other Tools