Skip to main content
Glama

read_rtt

Read SEGGER RTT buffer content to access real-time log output from a microcontroller without halting execution.

Instructions

读取 SEGGER RTT(Real Time Transfer)缓冲区内容。 RTT 是非侵入式实时日志通道,无需停止目标即可读取。 需要目标固件中包含 SEGGER RTT 库并使用 SEGGER_RTT_printf() 输出。

Args: channel: RTT 通道号,默认 0(通常用于日志输出)。 max_bytes: 最大读取字节数,默认 1024。

Returns: 读取到的 RTT 文本内容。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelNo
max_bytesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It states the tool is non-intrusive and does not need to halt the target, which is good. However, it does not disclose potential side effects (e.g., does reading clear the buffer?), error conditions, or authentication requirements.

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?

The description is well-structured with a concise overview and structured Args/Returns sections. Some redundancy exists (e.g., first sentence and last sentence both mention reading RTT content), but overall it is efficient.

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?

Given no annotations and 0% schema coverage, the description fairly covers prerequisites, parameters, and output. It lacks details on error handling or blocking behavior, but for a simple read tool, it is adequately complete.

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

Parameters4/5

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

The schema has 0% coverage, so the description must explain parameters. It provides default values and context: channel 0 is typical for log output, max_bytes limits read size. This adds significant meaning beyond the schema's bare titles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it reads SEGGER RTT buffer content, explains what RTT is, and distinguishes it from the sibling write_rtt tool. The verb '读取' (read) and resource 'RTT 缓冲区内容' are specific.

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?

Describes a prerequisite (target firmware must include SEGGER RTT library), but does not explicitly state when to use this tool versus alternatives like read_memory or when not to use it. No exclusions or sibling comparisons are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xun123456/jlink-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server