Skip to main content
Glama

BorshLab | Solana No-IDL TX Decoder

Decode Solana Instruction

decode_solana_instruction

Decode a Solana instruction and return a compressed 2-4 line Agent-First risk verdict.

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": {
      "program_id": "<program_id>"
    },
    "name": "decode_solana_instruction"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountsNo
data_b58No
data_hexNo
program_idYes
wait_for_compileNo

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?

With no annotations, the description carries the full burden. It usefully discloses the output format (compressed 2-4 line risk verdict), but says nothing about safety profile, whether decoding can fail on malformed data, what happens when the program is unknown, or what wait_for_compile affects.

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?

A single front-loaded sentence with no filler; it is efficient. Its brevity is partly the problem, but there is no wasted wording to trim.

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 needn't be restated. However, for a 5-parameter tool with zero schema coverage and no annotations, the definition omits parameter meaning, prerequisite data sources, and failure behavior, leaving real gaps an agent must resolve by trial.

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

Parameters1/5

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

Schema description coverage is 0% across all 5 parameters, and the description adds no meaning whatsoever. It does not explain the b58 vs hex data alternatives, the accounts list, or the wait_for_compile default, leaving every input undocumented.

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 and resource (decode a Solana instruction) and adds a distinctive output shape (a 2-4 line risk verdict). It does not differentiate from the sibling decode_solana_transaction, so an agent must guess which decoder applies, but the core purpose is unambiguous.

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 guidance, no mention of when to prefer decode_solana_transaction or decode_solana_tx_by_signature, and no preconditions such as needing the compiled instruction data. The agent is left to infer selection from the name alone.

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