Skip to main content
Glama

simulate_transaction

Simulate Ethereum transactions to verify contract calls before execution, checking for reverts and return data without broadcasting.

Instructions

Run an eth_call against the chain's RPC to simulate a transaction without signing or broadcasting it. Returns { ok, returnData?, revertReason? }. Use this BEFORE prepare_*/send_transaction to verify a contract call does what you expect — e.g. does wrapping ETH by sending to WETH9's fallback succeed, does a custom calldata revert, what selector gets hit. For state-dependent calls (WETH deposit credits msg.sender, ERC-20 transfer debits msg.sender), pass the user's wallet as from. Prepared transactions are also re-simulated automatically at send_transaction time — this tool lets the agent check ahead. NEVER call this on a tx that depends on an approval you just submitted but haven't yet waited on: the approval must be included on-chain (poll get_transaction_status until confirmed) before the dependent tx will simulate correctly — otherwise you get a misleading 'insufficient allowance' revert.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoethereum
fromNomsg.sender to simulate from. Omit for a state-independent call; include the user's wallet when the target contract's behavior depends on the caller (e.g. WETH9.deposit credits msg.sender, ERC-20 transfer debits msg.sender).
toYes
dataNoHex-encoded calldata. Omit for a plain value transfer.
valueNoValue to send with the call, in wei as a decimal string. Omit for 0. Example: "500000000000000000" for 0.5 ETH.
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It thoroughly explains the tool's behavior: it's a read-only simulation that doesn't sign or broadcast, returns specific result structure, has state-dependent considerations, and includes important caveats about approval timing and misleading revert reasons.

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 appropriately sized and front-loaded with the core purpose. Every sentence adds value, though it could be slightly more structured with clearer separation between usage guidelines and caveats. The information density is high without wasted words.

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 complex transaction simulation tool with no annotations and no output schema, the description provides comprehensive context. It explains the tool's purpose, when to use it, behavioral characteristics, parameter considerations, and important limitations. This adequately compensates for the lack of structured metadata.

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?

With 60% schema description coverage, the description adds meaningful context beyond the schema. It explains when to include the 'from' parameter for state-dependent calls and provides practical examples (WETH deposit, ERC-20 transfer). However, it doesn't cover all parameters comprehensively, particularly the 'chain' parameter which has an enum but no semantic explanation in the description.

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?

The description clearly states the specific action ('Run an eth_call against the chain's RPC to simulate a transaction without signing or broadcasting it') and distinguishes it from siblings like prepare_* and send_transaction tools. It explicitly mentions the verb 'simulate' and resource 'transaction' with clear scope.

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?

The description provides explicit guidance on when to use this tool ('Use this BEFORE prepare_*/send_transaction to verify a contract call does what you expect') and when not to use it ('NEVER call this on a tx that depends on an approval you just submitted but haven't yet waited on'). It also mentions alternatives like automatic re-simulation at send_transaction time.

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/szhygulin/vaultpilot-mcp'

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