Skip to main content
Glama

All-in-one pre-sign calldata & EIP-712 security suite

evm_tx_simulate
Read-onlyIdempotent

Simulate and audit EVM transactions or off-chain Permit2/EIP-712 signatures by decoding calldata/typed data, checking bytecode and taint, and running read-only eth_call before signing.

Instructions

[$0.04] Trigger When: vetting an EVM tx or off-chain Permit2/EIP-712 signature. Workflow Outcome: runs calldata/typed-data decode, bytecode & taint audit, eth_call simulation, and safe rewrite. Do not use for DeFi protocol TVL/circuit-breaker checks (use defi_protocol_tvl_check) or token honeypot scans (use token_honeypot_scan). Supply to+data for calldata simulation, typed_data for off-chain EIP-712/Permit2 vetting, or both; from_addr enables sender-accurate eth_call. Live RPC/bytecode/taint check, read-only non-custodial (no broadcast); requires x402 USDC or Stripe MPP (10 free lifetime calls via /api/free/*) at 30-60 req/min.

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

Input Schema

NameRequiredDescriptionDefault
toNoTarget 0x contract or recipient address
dataNo0x-prefixed hex calldata0x
chainNoEVM chain (base, ethereum, arbitrum, optimism)base
from_addrNoOptional sender 0x address for eth_call simulation
typed_dataNoOptional EIP-712 / Permit2 / Seaport typed-data JSON
session_tokenNoOptional prepaid session token (x402s_...) from https://apix402data.com/pay after the 10-call free preview.

Output Schema

NameRequiredDescriptionDefault
chainNo
flagsNo
cachedNo
degradedNo
endpointNo
gas_gweiNo
risk_scoreNo
rpc_sourceNo
simulationNo
taint_hitsNo
non_custodialNo
bytecode_auditNo
schema_versionNo
attestation_sigNo
calldata_analysisNo
exploit_feed_hitsNo
typed_data_analysisNo
recommended_private_rpcNo
safe_to_sign_or_broadcastNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, non-destructive, idempotent, open-world, but the description adds material context beyond them: no broadcast/no custody, live RPC and bytecode/taint checks, rate limits of 30-60 req/min, x402 USDC or Stripe MPP payment, and a 10-call lifetime free tier. That is exactly the auth/cost/throughput disclosure an agent needs before calling a paid endpoint.

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 dense paragraph, front-loaded with price and trigger condition, then workflow, then exclusions, then parameter routing, then auth constraints. Every clause carries information, though the pricing/auth tail is packed tightly enough that it reads as a run-on.

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?

Zero required parameters and an output schema present, so the description carries only invocation and constraint burden, and it covers that fully: all three input modes, sender accuracy, cost, rate limits, and payment path. Nothing needed to call it correctly is missing.

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 the baseline is 3, but the description adds conditional combinations the schema does not express: `to`+`data` selects calldata simulation, `typed_data` selects off-chain EIP-712/Permit2 vetting, both can be supplied together, and `from_addr` enables sender-accurate eth_call. This meaningfully disambiguates use of optional parameters beyond their individual field descriptions.

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 names the concrete workflow components: calldata/typed-data decode, bytecode & taint audit, eth_call simulation, and safe rewrite, over a specific resource class (pre-sign EVM tx and EIP-712 signatures). It also distinguishes itself from two named siblings, so an agent can route without opening a 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?

Explicit 'Trigger When' conditions (vetting an EVM tx or off-chain Permit2/EIP-712 signature) and explicit exclusions naming the correct alternatives (defi_protocol_tvl_check, token_honeypot_scan). Nothing about when-to-use is left to inference.

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