Skip to main content
Glama

rtt_write

Write data to a specified RTT buffer on a J-Link target to send runtime input and support embedded debugging diagnostics.

Instructions

Write data to RTT / 向 RTT 写入数据.

Args: data: Data to write / 要写入的数据 buffer_index: RTT buffer index / RTT 缓冲区索引

Returns: Write result / 写入结果

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": "<data>"
    },
    "name": "rtt_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
buffer_indexNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.6/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 of behavioral disclosure and mostly does not. It does not say whether RTT must be running, whether writes block or fail when the buffer is full, whether data is encoded/terminated, or what error conditions look like. Only the trivial fact that it returns a write result is stated.

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?

The prose line is front-loaded and clear, but the Args/Returns docstring block largely duplicates field names already visible in the schema, adding bulk without new information.

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?

An output schema exists so return values need not be explained, but for a write tool with zero annotation coverage and 0% schema description coverage, the definition leaves critical preconditions and parameter constraints unaddressed.

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%, so the description should compensate, but it merely restates the schema titles ("Data to write", "RTT buffer index"). It adds no meaning about accepted data length/encoding for data, or valid ranges and selection rules for buffer_index beyond the default of 0.

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?

Uses a specific verb and resource ("Write data to RTT"), which is immediately distinguishable from siblings like rtt_read or rtt_get_status. It stops short of naming those alternatives explicitly, but the operation itself is unambiguous.

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?

There is no guidance on when to use this versus rtt_read, or whether an RTT session must first be started via rtt_start. No prerequisites, no exclusions, no mention of what happens if the buffer is not configured.

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