Skip to main content
Glama

simulate_tx

Read-onlyIdempotent

Will this tx succeed, what will it cost, is it a drain — before you sign — Simulate an UNSIGNED transaction against live Base state before an agent signs: will it SUCCEED or revert (with the contract's own reason), the gas estimate and ETH cost, and — decoded from the calldata — whether it grants an approval, and whether that approval is UNLIMITED (approve/permit) or a setApprovalForAll, the classic drain vectors. Pass from, to, and optionally data (calldata) + value. The pre-execution check the agent-safety playbook says to run and block on. Not financial advice. Required inputs: from, to. Priced $0.03 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls, or get 1 free call/day per tool. No API key required.

Input Schema

NameRequiredDescriptionDefault
toYesTo (recipient/contract)
dataNoCalldata (hex, optional)
fromYesSender address
valueNoETH value (optional)

Output Schema

NameRequiredDescriptionDefault
dataNoThe result payload. Shape is service-specific; every field is documented in the tool description.
serviceNoThe service id that answered.
checkedAtNoISO-8601 timestamp of when the underlying reads were taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare the safe-read profile, and the description goes well beyond them: it discloses exactly what is returned (revert reason, gas estimate, ETH cost, decoded approval and whether it is UNLIMITED or setApprovalForAll) plus the full commercial behavior ($0.03/call via x402, prepaid x-credit-token header, 1 free call/day, no API key). That is unusually rich operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core capability is front-loaded effectively, but the prose is dense and padded with marketing flavor ('is it a drain', 'the classic drain vectors', 'Not financial advice') and repeats the required inputs already in the schema. Several clauses could be cut without losing meaning.

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 re-explained, yet the description still names the key results and covers inputs, pricing, and auth alternatives. Given a 4-param schema at full coverage and one sibling-free niche, nothing an agent needs to invoke it correctly is missing.

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 100%, so the baseline is 3. The description restates 'from, to, and optionally data (calldata) + value' and adds the useful point that data is decoded for approval detection, but it adds little syntax or format detail beyond the schema's own 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?

States a precise verb+resource+scope: simulate an UNSIGNED transaction against live Base state, and enumerates the three concrete outputs (success/revert with the contract's own reason, gas+cost, decoded approval/drain vectors). An agent can distinguish this from siblings like tx_decode, ai_tx_explain, or sign_guard 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 Guidelines4/5

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

Gives a clear temporal trigger — 'before an agent signs' and 'the pre-execution check the agent-safety playbook says to run and block on' — which strongly implies when to use it. However, it never names the adjacent siblings it should be preferred over (e.g., safe_to_send, pre_trade_gate, mev_guard), so the routing is implied rather than explicit.

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