Skip to main content
Glama

Multi-chain gas and action cost oracle with AI pick

get_evm_gas_price
Read-onlyIdempotent

Fetch current EVM gas prices, EIP-1559 base and priority fees, and USD ERC-20 transfer estimates across Base, Ethereum, Arbitrum, and Optimism to estimate transaction costs.

Instructions

Fetch current EVM gas prices, EIP-1559 base/priority fees, and USD transfer estimates across Base, Ethereum, Arbitrum, and Optimism. Pass optional chain (base, ethereum, arbitrum, optimism, or all; defaults to base). Returns gas_gwei, base_fee_gwei, priority_fee_gwei, and est_erc20_transfer_usd. Do not use for Solana priority fees (use get_solana_priority_fee) or raw RPC calls (use call_chain_rpc). 1 free try per IP, then HTTP 402 ($0.001 USDC).

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_evm_gas_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoWhat you plan to do (e.g. 'swap USDC to ETH')swap
chainsNoComma list (default: base,ethereum,arbitrum,optimism)
timeout_msNoOptional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data
session_tokenNoOptional prepaid x402s_... session token from open_agent_session or https://apix402data.com/pay used after the 1 free try rolls over to HTTP 402.

Output Schema

NameRequiredDescriptionDefault
aiNo
as_ofNo
actionNo
cachedNo
chainsNo
errorsNo
eth_usdNo
cheapestNo
degradedNo
endpointNo
schema_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv5.6.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), yet the description still adds material behavior: a paywall at 1 free try per IP followed by HTTP 402 with a $0.001 USDC price. It does not disclose the degraded-response behavior on timeout or the prepaid session path, both of which are only in the schema.

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 tight sentences: capability, parameter/default note, exclusions, then pricing, with the primary purpose front-loaded. The enumeration of return fields is redundant given an output schema exists, costing a little space without adding 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?

Return values need not be explained because an output schema exists, and the description covers chains, cost model, and sibling routing. The main gap is the unexplained `action`/AI-recommendation behavior implied by the title, plus the unmentioned timeout degradation path.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description names the parameter `chain` in the singular, but the schema defines `chains` as a comma list, so the text points at a parameter that does not exist. It also claims the value 'defaults to `base`' while the schema default is 'base,ethereum,arbitrum,optimism', and it never mentions the `action` parameter that drives the 'AI pick' feature. Schema coverage is 100%, but the description introduces conflicting rather than additive meaning.

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?

Names a specific verb and resource (fetch EVM gas prices, EIP-1559 base/priority fees, USD transfer estimates) and scopes it to four named chains. It also distinguishes itself from get_solana_priority_fee and call_chain_rpc, so an agent can route between them without opening schemas.

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?

Explicitly states what the tool is not to be used for ('Do not use for Solana priority fees', 'raw RPC calls') and names the correct sibling for each. It also gives the default chain context, so the when-to-use picture is complete.

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