Skip to main content
Glama

get_gas_estimate

Estimate transaction gas costs on Base by providing a destination address plus optional calldata or ETH value, returning precise gas fees in both ETH and USD-equivalent amounts.

Instructions

Estimate gas cost for a transaction on Base. Provide a to address and optional data/value to get precise gas estimates in ETH and USD-equivalent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination address
dataNoTransaction calldata (hex string)0x
valueNoETH value to send (e.g. '0.001')0
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It states the output (ETH and USD-equivalent) but doesn't cover potential failure modes, whether it requires network calls, rate limits, or what happens with invalid addresses/calldata. For an estimation tool, the lack of error-behavior context is a gap.

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

Conciseness5/5

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

Two clean sentences, zero waste. Front-loaded with the action, then specifies inputs and output format immediately. Efficient and well-ordered.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a three-parameter estimate tool with full schema coverage and no output schema. However, with no annotations and no explicit return-value description beyond 'ETH and USD-equivalent,' it leaves the agent without clarity on edge cases — acceptable but not comprehensive.

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%, so all three parameters are documented in the schema. The description adds marginal context by noting data/value are 'optional' and frames the to as the primary input, reinforcing the schema's required flag. Schema does most of the work but description aligns well.

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?

Clear verb+resource (estimate gas for a transaction on Base) plus specific scope (to address, data/value). Clearly distinct from siblings like check_allowance and get_base_gas_price, though it doesn't explicitly contrast against them.

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

Usage Guidelines3/5

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

Implied usage context — when you need an estimate before sending a transaction. No explicit when-not-to-use or alternatives named, though the distinction from get_base_gas_price (block-level price vs transaction-level estimate) is implicitly clear.

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/lordbasilaiassistant-sudo/base-wallet-toolkit-mcp'

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