Skip to main content
Glama

rtt_read

Reads RTT log bytes from a J-Link target buffer with configurable size and timeout, enabling runtime diagnostics and debug output capture in STM32 projects.

Instructions

Read RTT log / 读取 RTT 日志.

Args: buffer_index: RTT buffer index / RTT 缓冲区索引 size: Read size (bytes) / 读取大小(字节) timeout_ms: Timeout (milliseconds) / 超时时间(毫秒)

Returns: Read result / 读取结果

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

Input Schema

NameRequiredDescriptionDefault
sizeNo
timeout_msNo
buffer_indexNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.8/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, and it discloses almost nothing behavioral. It does not say whether the read blocks until timeout, what happens on timeout or an empty buffer, whether data is consumed/destructive, or what error conditions look like; the "Returns: Read result" line just restates the output schema.

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 short and the one-line purpose is front-loaded, which is good. But roughly half the text is bilingual duplication and an Args/Returns scaffold that mostly repeats parameter names, so the useful byte count is thin.

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?

The existence of an output schema excuses it from explaining return values, but for a three-parameter tool with zero annotation and zero schema-description coverage, key facts are missing: prerequisite state, timeout semantics, and whether reads are destructive to the buffer.

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 description coverage is 0%, so the Args block is the only documentation and it does add units ("bytes", "milliseconds") plus some framing for buffer_index. However, it omits the declared defaults (size=1024, buffer_index=0) and never explains what timeout_ms=null means for blocking behavior.

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?

"Read RTT log" gives a specific verb (read) and resource (RTT log), so the agent knows it retrieves data from an RTT buffer. It does not explicitly distinguish itself from rtt_write or rtt_get_status, but the polarity is obvious from the verb.

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?

No when-to-use guidance is given: nothing says whether the RTT session must first be started with rtt_start, or when to prefer rtt_get_status over this call. The agent must infer prerequisites and sequencing entirely on its own.

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