Skip to main content
Glama

Explain a transaction in plain English (Base / Solana): swap, transfer, approval, contract call

tx_explain
Read-onlyIdempotent

Use when an agent must tell a user what a transaction did. Input: tx (Base hash or Solana signature), network=eip155:8453|solana (optional, inferred). Output: explanation (1-3 sentences; every number checked against the decoded facts, template fallback), facts: status, time, fee, from/to, called function (curated selector table), ERC-20 transfers, approvals, inferred swap (sent/received), Solana programs. Use instead: base_tx for raw decoded facts only; sol_tx for raw Solana balance changes. Example: ?tx=0x…&network=eip155:8453 Price: $0.005 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) 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": {
      "tx": "<tx>"
    },
    "name": "tx_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
txYesBase transaction hash (0x + 64 hex) or Solana signature (base58)
networkNoChain (default: Base for 0x hashes, Solana otherwise)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A5/5.0
Behavior5/5

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

Beyond the standard annotations, the description provides crucial behavioral context including the output format (1-3 sentences), the specific data points included (status, fee, called function via curated selector table), and the operational cost ($0.005 per call).

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

Conciseness5/5

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

The definition is highly dense and efficient, front-loading the core function and immediately addressing differentiation from sibling tools and operational constraints without any wasted language.

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?

Given its complexity (multi-chain, natural language generation, operational cost), the definition is exceptionally complete. It covers input formats, output expectations, and appropriate use cases across all dimensions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds vital semantic context by specifying the exact formats required for the tx parameter (Base hash 0x... or Solana signature base58) and the accepted values for the optional network parameter.

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 tool purpose is crystal clear: to explain a transaction in plain English, specifying the covered transaction types (swap, transfer, approval, contract call). It effectively distinguishes itself from the raw data tools like base_tx and sol_tx.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description provides explicit 'when' and 'when-not' guidance, stating it should be used when an agent needs to 'tell a user what a transaction did.' It explicitly directs the user to use base_tx or sol_tx for raw facts 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