Skip to main content
Glama

crypto_solana_tx_decode

Read-only

Solana transaction decoder and x402 payment checker — Decode a serialized Solana transaction offline (base64, base58 or hex; legacy or v0 with address lookup tables) before signing or settling it: signatures present/missing, fee payer, recent blockhash or durable nonce, every account with signer/writable flags and labels, and every instruction decoded for System (transfers in SOL), SPL Token and Token-2022 (TransferChecked with symbol and UI amount, Approve, SetAuthority, CloseAccount, MintTo, Burn), Associated Token Account, Compute Budget and Memo; unknown programs shown with data hex and Anchor discriminator. Computes the fee (base + priority). Flags unlimited approvals, owner/authority changes, account closes to third parties, unknown programs and oversize packets → OK/REVIEW/DANGER. Accepts an x402 X-PAYMENT header or payload JSON too; optional pay_to= (recipient wallet), amount= (atomic units) and mint= (default USDC) check an x402 exact-scheme Solana payment → MATCH/MISMATCH with reasons. Signatures are not cryptographically verified. Offline; no network calls. Price: $0.004 USDC (Base, 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": "crypto_solana_tx_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
txYesGLeC6hHyQoBUhGbVe6x6XHJKdXFeJauEqP8XfVpqz4eN16VZmFnDeHundU6JndUDpADijtuEycFhSzkr9wfBXacS4M7rWMm58YaHZazYqH3FfBJENui2QuXCQWtBXnYmeQWk7bt8ATXMfhaUPmRTnpThkL2TD61ZisR3s5qjq4dA3FmME5tvbYgrzFxmmSp56wtz2vPFEdkiNrUnScBAqtpUUcbyT84HXabPuDRhDLqXWmzfMCkDQvSNjKyVjL9pN5HUunXv4DSzZNkCzHh8WJ4Lzae7NWK9DQoNQF8NmuLrsHtNChvdCyAvRypPd1MfxvPEfcuiewdCv7A2fnTpbchbb8M9bhMCoUVfgY3NTZy5XjPVLgVUEtYuszeQtZxCQHgaaMw8uoDJJ62ztgMMC4N3ebBsDKv2jx5ycumLQYqvFkjZffpJ2Av7RkfND7MHFvyZsqWn1BUkshNaJmNmfz8Mb8wxfD9oEvZY4ogXzn7KdQpSHoH4UVitJLjFLo2oD9x9ExLXud3rR6ZcBBskACtF6QZ12Cd6m6kGcyox5qVpUNxzaobFtEubC4rzGV9d4WMxsb7DZ

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses a lot: signer/writable flags, fee computation (base + priority), a three-level OK/REVIEW/DANGER risk verdict with the specific triggers (unlimited approvals, authority changes, third-party closes, unknown programs, oversize packets), MATCH/MISMATCH reasoning, an explicit limitation ('Signatures are not cryptographically verified'), and price. One tension: 'Offline; no network calls' sits awkwardly against openWorldHint=true and the x402 payment mention, which could be read as external interaction; it is not a direct safety contradiction (readOnly/destructive hints are honored), but an agent may be unsure what 'open world' means here.

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

Conciseness3/5

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

Purpose is front-loaded and nearly every clause carries information (decoded fields, risk rules, payment matching, caveats), but it is delivered as one very long semicolon-chained sentence. Splitting decoding, risk flags, x402 checking and limitations into discrete sentences would improve scanability without losing content.

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 still tells the agent what comes back — signatures/feepayer/blockhash, per-account flags, per-instruction decoded detail, fees, verdicts. It covers limits (no signature verification), side-effect profile (offline), cost, and both primary and secondary modes, leaving little an agent needs to guess.

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

Parameters4/5

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

The single schema parameter carries no semantic text (only a sample blob), so the description does the work by naming accepted encodings (base64, base58, hex) and legacy vs v0 with lookup tables. It also explains pay_to (recipient wallet), amount (atomic units) and mint (default USDC) semantics — though those optional parameters do not appear in the supplied schema, which is a mismatch an agent could trip over.

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+resource ('Solana transaction decoder and x402 payment checker') and enumerates scope: offline decoding of base64/base58/hex legacy or v0 transactions, plus x402 exact-scheme payment matching. It is unambiguously distinguishable from sibling decoders (crypto_btc_tx_decode, chain_decode_raw_tx) by chain, input formats, and the added payment-verification role.

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 clear usage context: run it 'before signing or settling' a transaction, and it also 'Accepts an x402 X-PAYMENT header or payload JSON too' for payment checks. It never names an alternative tool or an explicit when-not-to-use case, so routing to siblings rests on the reader's inference of chain/role.

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