Skip to main content
Glama

tx_simulate

Read-onlyIdempotent

Simulate an EVM transaction (or a sequence of up to 5, e.g. approve then swap) before signing: revert check with reason, every asset leaving or entering the wallet, approvals granted, sanctions/scam screening of counterparties, and a proceed/caution/avoid verdict. Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Linea, Unichain, Sonic. Free over MCP for 10 calls per day; beyond that the tool returns the pay-per-call x402 endpoint and its price.

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": {
      "from": "<from>",
      "transactions": "<transactions>"
    },
    "name": "tx_simulate"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYesWallet that will sign
chainNobase
transactionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "ethereum",
      -  "base",
      -  "arbitrum",
      -  "optimism",
      -  "polygon"
      -]New value: +[
      +  "ethereum",
      +  "base",
      +  "arbitrum",
      +  "optimism",
      +  "polygon",
      +  "bsc",
      +  "linea",
      +  "unichain",
      +  "sonic"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the concrete outputs of the simulation, the transaction-sequence limit, the full chain support list, and the commercial behavior (10 free calls/day, then an x402 pay-per-call endpoint with price). That rate-limit and fallback behavior is exactly the kind of operational context annotations cannot express.

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?

Front-loaded with the verb and the payoff, and the second sentence covers chains and pricing without padding. It is dense — the first sentence packs five separate outputs into one clause chain — but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does the necessary work of naming the return contents and verdict vocabulary, and it covers the rate-limit/pricing edge case an agent must handle. The remaining gap is per-parameter guidance for an under-documented schema, which a caller assembling `transactions` would benefit from.

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 only 33%, with chain and each transaction's `to` undocumented in the schema. The description compensates only partially by restating the chain list and the up-to-5 sequence limit; it says nothing about the `from` wallet's role, what calldata/value formats are expected, or how the sequence is executed in order.

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 ("Simulate an EVM transaction") and enumerates exactly what comes back: revert reason, asset movements, approvals, sanctions/scam screening, and a proceed/caution/avoid verdict. It also names the supported chains, which cleanly separates it from the Solana sibling solana_tx_simulate and from tx_decode.

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

Usage Guidelines4/5

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

Gives a clear trigger: "before signing," including the multi-step case (approve then swap). It does not name any alternative sibling (e.g. tx_decode, preflight, trade_check) or say when a simulation is unnecessary, so usage is well framed but not fully routed.

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.