Skip to main content
Glama

Explain transaction, decoded: what an EVM transaction did

pack_tx_explain
Read-only

Explain an EVM transaction in plain words: success or revert, sender and contract, ETH value, fee, the function called (decoded for common ERC-20, ERC-721, WETH, permit and multicall calls), and every token transfer, mint, burn and approval it emitted with amounts and symbols, plus one-line summaries. Base, Ethereum, Arbitrum, Optimism or Polygon. Use to check what a payment or contract call really did before trusting it or reporting it. Example: hash=0x7d108fa131ed949c76d50caf2e7dfe25fc9903b9d276c40a0446d8afbdfe86b0. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "hash": "<hash>"
    },
    "name": "pack_tx_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYes0x transaction hash
chainNoNetwork: base (default), eth, arb, op or polygon

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations by disclosing pricing ($0.01/call, first 10 free, failed calls free), the fact that repeats are billed and therefore not free, and that the tool reads or computes only. It also exposes a real limitation — decoding covers only common ERC-20/721/WETH/permit/multicall patterns — which is exactly the kind of caveat an agent needs before promising decoded output. This is consistent with readOnlyHint=true and explains idempotentHint=false as a billing property rather than a state change.

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?

Purpose and return contents are front-loaded, and the closing sentences on usage, example, and pricing each carry distinct information. The first sentence is dense with comma-separated field lists and runs long, which costs a little readability, but nothing is redundant.

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 burden of describing the response and does so thoroughly — status, parties, value, fee, decoded function, all token movements with amounts and symbols, and summaries. Parameters are fully covered by schema, so the remaining risk for an agent (cost, decoding limits, side effects) is also addressed.

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 coverage is 100%, so both the hash and chain parameters are already documented, and the description largely restates them. It adds a small amount of value with the concrete example hash showing the 0x format and the full chain roster, but no default or alias behavior beyond what the schema provides.

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 ('Explain an EVM transaction in plain words') and then enumerates exactly what the answer contains: status, sender/contract, ETH value, fee, decoded function, every token transfer/mint/burn/approval, plus summaries. The scope (five named chains) and the decoded-call coverage (ERC-20, ERC-721, WETH, permit, multicall) let an agent distinguish this from the raw per-chain fetchers like eth_tx or base_tx 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 Guidelines4/5

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

Gives a clear trigger: 'Use to check what a payment or contract call really did before trusting it or reporting it,' which tells the agent this is a verification/interpretation step rather than a data fetch. It does not explicitly name an alternative tool or state when not to use it, so it stops short of full routing guidance.

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