Skip to main content
Glama

decode_log

Extract the failed program ID and error code from Solana transaction logs, then get exact error meanings and cross-program collision context when the program is unknown.

Instructions

Paste a Solana transaction log (or any text containing a failure line). Extracts the failed program ID and error code, then returns the exact meaning for that program — plus the cross-program collision map when the program is unknown.

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": {
      "log": "<log>"
    },
    "name": "decode_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
logYesTransaction log text or any text containing an error line

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the output shape — failed program ID, error code, resolved meaning, and a cross-program collision map fallback when the program is unknown — which is genuinely useful. But it says nothing about what happens when no failure line is present, how parsing failures are reported, or whether the whole log or only the first error is processed, all of which matter for an unannotated tool.

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?

Two tight sentences with the input requirement front-loaded and the output contract following immediately. Every clause carries information — the accepted input forms, the extracted fields, and the unknown-program fallback — with no filler.

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 single-parameter tool with no output schema and no annotations, the description does most of the needed work: it explains both what goes in and what comes back, including a non-obvious fallback path. The remaining gap is edge-case behavior (no failure line, multiple errors in one log), which is minor for a tool of this complexity.

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% for the single required 'log' parameter, so the baseline is 3. The description's note that 'any text containing a failure line' is acceptable adds a little latitude beyond the schema wording, but it largely restates the schema's own parameter description and gives no format or size expectations.

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: extract the failed program ID and error code from a Solana transaction log and return the error's meaning. The scope is clear enough to act on. It does not, however, distinguish itself from the sibling lookup_error, which on its face also resolves error meanings — the agent must infer that this one works from raw log text.

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

Usage Guidelines3/5

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

Usage is implied by the input: 'Paste a Solana transaction log (or any text containing a failure line)' tells the agent what kind of input selects this tool. There is no explicit when-not guidance and no mention of lookup_error or list_programs as alternatives, so routing between siblings is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools