Skip to main content
Glama

/v1/tx/explain

explain_transaction
Read-only

Explain a Base or Arc transaction in plain JSON: status, confirmations, fee, method selector, created contract, and every ERC-20 transfer decoded with symbol and decimals. Costs $0.004 USDC on Base per call via x402 (unpaid calls return the x402 PaymentRequired; any x402 MCP client pays automatically).

Input Schema

NameRequiredDescriptionDefault
txYes
chainNobase

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Going well beyond the readOnlyHint/openWorldHint annotations, it discloses the per-call price ($0.004 USDC on Base), the payment rail (x402), and the exact failure mode for unpaid calls (PaymentRequired response). That is precisely the behavioral context an agent needs before invoking a paid tool.

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 core capability is front-loaded and every clause earns its place, including the cost/payment sentence. The return-field list is long, but each item is genuinely informative rather than filler.

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 properly enumerates the return shape (status, confirmations, fee, selector, created contract, decoded ERC-20 transfers) and covers the payment model. Minor gaps remain around confirmations semantics and chain/transaction mismatch behavior.

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 0%, so the description must compensate, and it only partially does: 'Base or Arc transaction' maps to the chain enum and its default but adds nothing about the 'tx' hash format or what chain selection does to decoding. The schema's pattern and enum carry the rest, leaving this at a baseline-plus level.

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 ('Explain') and resource ('a Base or Arc transaction') and enumerates exactly what the response contains: status, confirmations, fee, method selector, created contract, and decoded ERC-20 transfers. This distinguishes it clearly from address_profile and verify_usdc_payment, which cover different resources.

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?

The description makes the usage context clear (any x402 MCP client, paid calls only) and states that unpaid calls return PaymentRequired, which implicitly tells the agent it must be x402-capable. It does not, however, name when to prefer a sibling like address_profile or verify_usdc_payment.

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