Skip to main content
Glama

systemview_decode

Decode Base64-encoded raw SystemView RTT bytes from J-Link captures and summarize runtime events, enabling embedded diagnostics without a .SVDat file.

Instructions

Decode raw SystemView RTT bytes and summarize runtime / 离线解码 SystemView 二进制流.

Input is Base64 of raw RTT bytes, not a .SVDat file. Maximum 4 MiB. timestamp_hz overrides INIT timestamp clock, not necessarily CPU clock.

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": {
      "data_base64": "<data_base64>"
    },
    "name": "systemview_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
data_base64Yes
event_limitNo
timestamp_hzNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the full load. It does disclose two genuinely useful traits: a hard 4 MiB input ceiling and the exact semantics of timestamp_hz as an INIT-clock override rather than the CPU clock. It says nothing about failure modes for oversized/malformed payloads, whether decoding is purely offline/read-only, or how output is truncated.

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?

Three short sentences, front-loaded with the core action, then the input-format caveat, then the parameter note. The only waste is the bilingual restatement of the opening clause, which adds no information for an English-reading agent.

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

Completeness3/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 described, and the description correctly avoids that. However, for a 3-parameter tool with zero schema description coverage, leaving event_limit undocumented and omitting any pointer to the capture-side sibling makes the definition only adequate, not complete.

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 0% (titles only, no descriptions, no enums), so the description must compensate. It gives solid meaning for data_base64 (Base64 of raw RTT bytes, not .SVDat, 4 MiB max) and timestamp_hz (overrides INIT timestamp clock), but event_limit — default 100 — is never mentioned, so a third of the parameter surface remains unexplained.

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 pair ("Decode raw SystemView RTT bytes and summarize runtime") and clarifies the input universe by excluding .SVDat files, which is the most likely mis-assumption. It stops short of naming or contrasting with systemview_capture, so the sibling boundary is left implicit.

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?

The description establishes the precondition for input (Base64 raw RTT bytes, not a .SVDat file, cap 4 MiB) but never says when to reach for this tool versus systemview_capture or export_runtime_trace, nor what to do after decoding. Usage is implied by the input-format caveat rather than stated.

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