Skip to main content
Glama

BorshLab | Solana No-IDL TX Decoder

Decode Solana Transaction

decode_solana_transaction

Decode outer+CPI instructions and feePayer net PnL into a unified transaction verdict.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "decode_solana_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
fee_payerNo
signatureNo
instructionsNo
pre_sol_lamportsNo
wait_for_compileNo
post_sol_lamportsNo
pre_token_balancesNo
post_token_balancesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and discloses almost nothing: it does not say whether the tool performs network/RPC fetches (implied by "signature" and "wait_for_compile"), whether it is a pure read, what happens with partial inputs, or what "verdict" contains. "Unified verdict" hints at aggregation but is not concrete behavior.

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?

It is a single front-loaded sentence with no filler, which is structurally clean. But for a tool with 8 optional, mutually interacting parameters, one sentence is under-specified rather than appropriately concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, but the definition still falls short: zero parameter documentation, no annotations, and unresolved overlap with decode_solana_tx_by_signature. An agent would have to open both schemas and guess at input combinations to call this correctly.

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

Parameters2/5

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

All 8 parameters are undocumented in the schema (0% coverage), and the description only incidentally touches two of them (feePayer, instructions) plus implying pre/post balances via "net PnL". Nothing explains wait_for_compile (a default-true boolean that likely gates compilation), the token balance arrays, or how signature vs. instructions inputs combine — a substantial compensation gap.

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?

The description pairs a specific verb ("Decode") with a specific resource scope ("outer+CPI instructions and feePayer net PnL") and names the output artifact ("unified transaction verdict"). That distinguishes it reasonably well from decode_solana_instruction, though it never explicitly contrasts with decode_solana_tx_by_signature even though both appear to relate to signature-based transactions.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative. The presence of both an optional "signature" param here and a sibling decode_solana_tx_by_signature leaves a real routing ambiguity that the description does nothing to resolve.

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