Skip to main content
Glama

EVM Transaction Simulator

simulate_evm_tx
Read-onlyIdempotent

Read-only, side-effect-free EVM transaction dry-run (eth_call + gas estimation) that decodes revert reasons, detects unlimited ERC-20 approvals, flags EIP-7702 delegation targets, and scores ONNX drainer risk without signing or broadcasting. Use this when you have concrete from/to/data/value calldata to test; use inspect_evm_address_safety to check an address alone, inspect_eip7702_authorization for Pectra authorization_list tuples, or preflight_transaction_guard for a unified ALLOW/WARN/BLOCK guardrail.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chainId": "<chainId>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "simulate_evm_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget 20-byte EVM address
dataNoOptional hex calldata (default 0x)
fromYesSender 20-byte EVM address
valueNoOptional wei value as decimal or 0x-hex string (default 0x0)
chainIdYesEVM chain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 10=Optimism, 137=Polygon)

Output Schema

NameRequiredDescriptionDefault
successNoWhether eth_call simulation succeeded without reverting
verdictNoDeterministic decision or classification label when applicable
timestampNoISO-8601 evaluation timestamp when provided
gasEstimateNoEstimated gas usage
revertReasonNoDecoded revert reason if simulation reverted
drainerRiskScoreNoONNX drainer probability score

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, and the description goes beyond them by clarifying no signing or broadcasting occurs and by disclosing what the simulation returns: revert decoding, unlimited ERC-20 approval detection, EIP-7702 delegation flags, and ONNX drainer scoring. It stops short of covering RPC/failure behavior or how risk scores should be interpreted.

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?

Purpose is front-loaded in the first clause, followed by capability list and then routing guidance. It is dense with enumerated features but nearly every clause adds information; a slightly tighter feature list would be ideal.

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?

An output schema exists, so return values need not be explained, and annotations carry the safety profile. For a read-only simulation tool the description supplies everything needed to choose and invoke it correctly.

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%, so the schema already documents all five parameters including hex patterns and defaults. The description only restates the from/to/data/value shape and adds no format or semantic detail beyond what the schema supplies, so the baseline of 3 applies.

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?

States a specific verb and resource ('Read-only, side-effect-free EVM transaction dry-run (eth_call + gas estimation)') and enumerates the concrete checks it performs. It also names the sibling tools it is not, so the agent can distinguish it without opening any schema.

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?

Explicitly states the entry condition ('when you have concrete from/to/data/value calldata to test') and routes three named alternatives to their own conditions: address-only checks, Pectra authorization_list tuples, and unified guardrails. When-to-use and when-not-to-use are both covered.

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