Skip to main content
Glama

chain_simulate

Read-only

Transaction simulator (dry-run any contract call) — Dry-run a transaction before signing it: eth_call + eth_estimateGas + code check on Base, Ethereum, Arbitrum, Optimism or Polygon. Returns SUCCESS/REVERT, the decoded revert reason (Error(string), Panic codes, ~100 common OpenZeppelin/Uniswap/Permit2/ERC-4337/Safe custom errors) with a plain-English fix, return words, gas estimate and fee. Params: chain, to, data (0x calldata); optional from, value (wei) or value_eth, block, errors=Name(type);Other(type) for extra custom errors. Read-only, nothing is sent. Price: $0.003 USDC (Base, via x402).

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": {
      "chain": "<chain>",
      "to": "<to>",
      "data": "<data>"
    },
    "name": "chain_simulate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
dataYes0xa9059cbb000000000000000000000000000000000000000000000000000000000000dead00000000000000000000000000000000000000000000000000000000000f4240
chainYesbase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so 'Read-only, nothing is sent' largely restates them. The description does add genuinely new behavioral context beyond the annotations: the exact return surface (SUCCESS/REVERT, decoded revert reason with ~100 known custom errors plus plain-English fix, return words, gas estimate, fee) and a cost of $0.003 USDC per call via x402, which matters for an agent deciding whether to invoke it.

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-loads the core purpose, then returns, then params, then price — a sensible information order with no filler sentences. It is dense, with a long parenthetical error-source list that could be trimmed, but each element carries usable information.

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?

With no output schema, the description carries the full burden of describing return values and does so precisely, including the revert-reason decoding and gas/fee outputs. Supported chains, cost, and the safety profile are all covered, leaving nothing an agent needs in order to call it correctly.

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 nominally 100%, but the schema 'descriptions' are only example values (an address, sample calldata, 'base'), not semantics. The description compensates by defining data as 0x calldata, value as wei (with value_eth as an alternative), and especially by documenting the errors=Name(type);Other(type) syntax and optional params (from, block, errors) that do not appear in the schema at all.

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?

Names a specific verb and resource ('dry-run any contract call') and enumerates the chains covered plus the underlying mechanics (eth_call + eth_estimateGas + code check), which lets an agent distinguish it from lower-level siblings like chain_call or chain_estimate_gas. It stops short of explicitly naming those siblings as the narrower alternatives.

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?

'Dry-run a transaction before signing it' gives a clear triggering condition for use. No explicit when-not or named alternative is provided, so the agent must infer that a plain read call belongs in chain_call instead.

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