Skip to main content
Glama

EVM Gas Price Lookup

evm_gas_price_lookup
Read-only

Retrieve the current gas price for Ethereum or Base for transaction planning. Returns wei and gwei from a single eth_gasPrice JSON-RPC call; live network result may change between calls and does not estimate total transaction cost, submit a transaction, or provide execution authorization. USE WHEN: an agent needs the current EVM gas price before estimating fees or preparing a transaction. DO NOT USE WHEN: the agent needs to inspect an existing transaction by hash (use evm_transaction_hash_lookup) or retrieve a wallet balance (use evm_wallet_balance_lookup).

Input Schema

NameRequiredDescriptionDefault
chainYesEVM network to query for the current gas price.

Output Schema

NameRequiredDescriptionDefault
chainYesEVM network queried.
observed_atYesUTC observation time.
gas_price_weiYesCurrent gas price in wei (atomic units).
gas_price_gweiYesCurrent gas price in gwei.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, open-world, and non-idempotent behavior, but the description adds meaningful context beyond them: it specifies a single `eth_gasPrice` JSON-RPC call, explains that live results may change between calls (justifying non-idempotency), and explicitly states it does not estimate total cost, submit transactions, or authorize execution.

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 front-loaded with purpose and well-organized into USE WHEN / DO NOT USE WHEN blocks. There is minor redundancy between 'for transaction planning' and the later 'before estimating fees or preparing a transaction,' but overall it is 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?

For a single-parameter read tool with an output schema and rich annotations, the description covers purpose, usage boundaries, alternatives, and behavioral limits. Nothing needed to call it correctly 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 `chain` parameter has a clear enum and description. The tool description mentions 'Ethereum or Base' but adds no syntax or format details beyond what the schema already provides, so the baseline of 3 is appropriate.

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?

States a specific verb and resource ('Retrieve the current gas price for Ethereum or Base') and explicitly scopes it to transaction planning. It clearly distinguishes itself from the named sibling tools for transaction inspection and wallet balance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit 'USE WHEN' and 'DO NOT USE WHEN' sections with named alternatives (`evm_transaction_hash_lookup`, `evm_wallet_balance_lookup`) and the conditions that select each. Nothing is left to inference.

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.

Resources