Skip to main content
Glama

simulate_transaction

Run pre-flight eth_call and eth_estimateGas simulation with Solidity revert decoding, OFAC/mixer pre-check, and mempool guard warnings.

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": "simulate_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget contract or recipient 0x-prefixed address
gasNoOptional gas limit in decimal or 0x hex
dataNo0x-prefixed calldata bytes0x
fromNoOptional 0x-prefixed sender address
chainNobase
valueNoNative wei amount in decimal or 0x hex0x0
blockTagNolatest
maxFeePerGasNoOptional maxFeePerGas in wei
maxPriorityFeePerGasNoOptional maxPriorityFeePerGas in wei

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose non-obvious behavior: Solidity revert decoding, OFAC/mixer pre-check, and mempool guard warnings. However, it never states that the call is non-broadcasting/read-only (merely implied by 'simulation'), nor whether an OFAC hit or mempool warning short-circuits the simulation or is returned alongside a successful estimate.

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?

A single front-loaded sentence with no filler; every clause names a real capability. It is dense to the point of being a feature list rather than an explanation, but nothing is wasted.

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?

For a nine-parameter tool with a layered, non-trivial result (revert reason, gas estimate, OFAC verdict, mempool warnings) and no output schema, the description should sketch the return shape or the ordering of checks. It enumerates capabilities but leaves the agent unsure what a successful versus flagged response looks like.

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 description coverage is 78%, so the input schema already documents most parameters (to, data, gas, value, from, fee fields). The description adds no parameter-level meaning at all — notably silent on blockTag (undescribed in schema) and on whether fee fields interact with the gas estimate.

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?

The description names a specific verb and mechanism — 'Run pre-flight eth_call and eth_estimateGas simulation' — plus the decoded outputs it delivers, so the resource is unambiguous. It does not, however, differentiate itself from the sibling estimate_gas (which overlaps on gas estimation) or screen_evm_address (which overlaps on the OFAC pre-check), leaving the agent to guess the boundary.

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?

'Pre-flight' implies this is called before broadcasting a transaction, which is useful implied context, but there is no explicit when-to-use statement and no exclusions. Nothing tells the agent when to prefer this over estimate_gas or to run screen_evm_address separately.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources