Skip to main content
Glama

Transaction Explainer

crypto_tx_explain

Explain what an EVM transaction would actually do: decodes the calldata (ERC-20 transfers/approvals via known ABIs, unknown selectors via the 4byte directory) and simulates the call against live chain state to report the outcome — including unlimited-approval warnings — without sending anything. Use this when an agent needs to decode and simulate a transaction — before signing it. x402 price $0.02/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesTo address
dataYesCalldata (0x hex)
chainYesChain
valueYesValue (wei, optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it explicitly says nothing is sent (read-only, non-destructive), states that simulation runs against live chain state, and discloses that unlimited-approval warnings appear in the result. It also discloses the x402 price. It does not cover failure modes (reverts, unsupported chains) or latency.

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?

The capability is front-loaded in the first clause, followed by usage guidance and price. Each sentence earns its place; only the pricing detail is slightly tacked on.

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?

There is no output schema, so the description must convey the return value. It does so (decoded calldata, simulated outcome, approval warnings). For a four-param read-only tool this is close to complete, with only revert and error handling unaddressed.

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 four parameters are already documented, if terse. The description adds context about what data means (calldata, known ABIs) but not per-parameter semantics such as units, zero-value handling, or chain-specific behavior. Baseline 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?

The description gives specific verbs and a resource: decode calldata and simulate an EVM transaction against live chain state. It also names the techniques (known ABIs, 4byte directory) and the output (outcome plus unlimited-approval warnings), which separates it from siblings like crypto_gas_price or crypto_address_validate.

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?

It states a clear usage context: "Use this when an agent needs to decode and simulate a transaction — before signing it." No sibling alternative is named, and no explicit exclusions are given, but no other sibling performs simulation, so the routing ambiguity is low.

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