MCP Toolsget_gas

get_gas

Get current gas prices with USD cost estimates for common operations.

Tier: Free

Parameters

ParameterTypeRequiredDescription
chainIdnumberNoChain ID (default: 1)

Example

"What's the current gas price on Arbitrum?"

Response

Returns:

  • Current gas price in Gwei
  • Estimated USD cost for: transfer, swap, approve operations
  • Based on current native token price

Implementation

Uses viem to fetch gas price from RPC, then estimates costs for standard gas limits (21,000 for transfer, 300,000 for swap, 50,000 for approve).