Skip to main content
Glama

estimateUserOperationGas

Estimate gas costs for an ERC-4337 user operation against a specified entry point, with optional network and state override settings.

Instructions

Estimate gas costs for an ERC-4337 user operation against an entry point

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoNetwork ID. Call listSupportedNetworks for all options. e.g. "eth-mainnet", "base-mainnet"eth-mainnet
userOperationYesUserOperation object
entryPointYesEntryPoint address
stateOverrideSetNoState override set for gas estimation
Behavior2/5

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

With no annotations, the description must fully disclose behavioral traits, but it only states the purpose. It does not reveal whether the tool makes an RPC call, if it is read-only, what side effects exist, or any authentication requirements. This is a significant gap for a tool that likely involves network interaction.

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?

The description is a single well-structured sentence that captures the core functionality without wasted words. It is appropriately front-loaded and concise.

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?

Given the complexity of ERC-4337 and the lack of an output schema, the description is incomplete. It does not mention the return fields (e.g., preVerificationGas, verificationGas, callGasLimit), nor does it contextualize the tool among siblings like getSupportedEntryPoints. It is adequate for a basic understanding but lacks depth.

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% with descriptions for all four parameters. The description adds no extra meaning beyond the schema; e.g., it doesn't explain the format of the return value or how stateOverrideSet affects estimation. Baseline 3 applies since the schema does the heavy lifting.

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?

Description clearly states the tool estimates gas costs for an ERC-4337 user operation, which is a specific verb+resource. It distinguishes itself from sibling tools like getUserOperationByHash (retrieval) or simulateUserOperationAssetChanges (simulation of asset changes).

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

Usage Guidelines2/5

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

No usage guidelines are provided. The description does not indicate when to use this tool versus alternatives, nor does it specify any prerequisites or exclusions. For example, it doesn't mention that users should first construct a UserOperation object or that network must be set appropriately.

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/alchemyplatform/alchemy-mcp-server'

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