Skip to main content
Glama

explain_tx

Read-onlyIdempotent

Run after a transaction lands or fails, to report what happened instead of guessing from logs. For failures it names the failing program and the fix. Reads a confirmed transaction: whether it worked, the fee, each wallet's SOL and token changes, the programs used, and why it failed. Example: {"tx_id": ""}. Cost: 25 free calls a day, then $0.01 USDC per call (x402). Outputs explained: GET /api/tools/explain_tx.

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_id": "<tx_id>"
    },
    "name": "explain_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
tx_idYesThe transaction's signature. Returned when you send, or from history. Never make one up.
networkNoDefault "mainnet-beta" (real money). "devnet" only for test wallets.mainnet-beta

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / network / description
      Previous value: -"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."New value: +"Default \"mainnet-beta\" (real money). \"devnet\" only for test wallets."
    • changedInput schema / properties / tx_id / description
      Previous value: -"The transaction's ID (its signature). You get it back when you send a transaction, or from history. Never make one up."New value: +"The transaction's signature. Returned when you send, or from history. Never make one up."
  2. Changed2 schema fields changed
    • addedInput schema / properties / network / description
      Added value: +"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."
    • addedInput schema / properties / tx_id / description
      Added value: +"The transaction's ID (its signature). You get it back when you send a transaction, or from history. Never make one up."
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds real value on top: it confirms it reads a confirmed transaction and discloses cost/rate limits ('25 free calls a day, then $0.01 USDC per call (x402)'). That pricing detail is exactly the kind of context an agent needs and annotations cannot convey.

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?

Front-loads the key trigger and purpose, then adds outputs, an example, cost, and a doc pointer. Mostly efficient, though 'For failures it names the failing program and the fix' and 'why it failed' are somewhat redundant.

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?

For a read-only tool with fully documented params and no output schema, the definition covers purpose, trigger, return contents, cost, and a doc link. It is essentially complete, with only the sibling-relationship gap as a minor shortfall.

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 the schema already documents tx_id and network thoroughly (including the enum and 'never make one up'). The description only restates this with an example, adding little beyond what the schema provides, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: it explains a confirmed transaction, reporting outcome, fee, SOL/token changes, programs used, and failure reason. This is clearly distinguishable from generic readers, but it never names siblings like check_tx or why_failed, whose purpose appears to overlap with the 'why it failed' part.

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 an explicit trigger: 'Run after a transaction lands or fails... instead of guessing from logs.' That establishes when to reach for it. It stops short of stating when-not to use it or naming an alternative such as check_tx or why_failed.

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.