Skip to main content
Glama

systemview_capture

Capture SystemView binary events and RTOS runtime summaries from instrumented firmware over exclusive J-Link RTT, then analyze task timing for single-core targets.

Instructions

Capture SystemView binary events and RTOS runtime summary / 采集 SystemView 并分析 RTOS.

Target must run instrumented firmware. Exclusive RTT; stop other recorders. Foreground call: up to 2 seconds discovery plus 10 seconds capture. Single core only. channel selects the SysView UP buffer, not RTT control block.

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": "systemview_capture"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelNo
max_bytesNo
duration_msNo
event_limitNo
block_addressNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose key behavior: RTT is held exclusively (so concurrent recorders must be stopped), the call is foreground/blocking for up to ~12 seconds total, and capture is limited to single core. It omits what happens on RTT contention (error vs. empty result) or whether the target is halted, which keeps it short of a 5.

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?

Constraints are front-loaded and every remaining line (exclusive RTT, foreground duration, single core, channel caveat) carries information. The bilingual first line duplicates content rather than adding it, and the telegraphic fragments cost a little readability.

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 no explanation, and the operational constraints are well covered. However, for a 5-parameter tool with zero schema documentation, the description leaves four parameters and their interactions (event_limit vs. max_bytes truncation, block_address as an alternative discovery path) unexplained.

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?

Schema description coverage is 0% across five parameters, so the description must compensate entirely and largely does not. Only 'channel' is explained ('selects the SysView UP buffer, not RTT control block'); 'max_bytes', 'duration_ms', 'event_limit', and 'block_address' are never mentioned, and it is unclear whether 'duration_ms' can exceed the stated 10-second capture window.

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: 'Capture SystemView binary events and RTOS runtime summary'. The purpose is unambiguous, but it offers no explicit differentiation from the sibling 'systemview_decode', leaving the capture-vs-decode split to inference from names alone.

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 real preconditions an agent must check before calling: instrumented firmware on target, exclusive RTT, other recorders stopped, single core only. It does not name an alternative tool or say when to prefer 'systemview_decode' or 'export_runtime_trace' instead, so no exclusions are stated.

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