Skip to main content
Glama

read_registers

Reads CPU register values from a J-Link target to inspect all general-purpose registers or selected named registers during debugging and runtime diagnostics.

Instructions

Read CPU registers / 读取 CPU 寄存器.

Args: register_names: Register name list (optional, None reads all general-purpose registers) / 寄存器名称列表(可选,None 则读取所有通用寄存器)

Returns: Register values / 寄存器值

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

Input Schema

NameRequiredDescriptionDefault
register_namesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
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 usefully discloses that passing None reads all general-purpose registers and that the tool is a read operation, but it omits prerequisites that matter for a debug-probe register read, such as whether a target must be connected or the CPU halted, and what happens on invalid register names.

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?

Front-loaded with the verb and resource and kept short, with no filler prose. It loses a point for the duplicated Chinese translation and a 'Returns' section that merely restates what the output schema already declares.

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?

Since an output schema exists, the description needn't explain return values, and the tool is a simple single-parameter read. Still, for a hardware-facing read with no annotations, an agent would benefit from knowing connection/halt prerequisites and register name conventions, neither of which is covered.

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 description must compensate for the single parameter. It does explain that register_names is an optional list whose omission means all general-purpose registers, which is real value beyond the bare array-of-strings schema, but it gives no indication of valid register name formats (e.g. 'r0', 'pc') or case sensitivity.

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 and resource ('Read CPU registers') that is immediately understandable. However, it does nothing to distinguish itself from siblings such as read_register_with_fields, get_svd_registers, or read_memory, leaving the agent to infer which register-reading tool applies.

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 when-to-use guidance, no exclusions, and no mention of alternatives among the several register/memory reading siblings. The only implied usage comes from the default note that omitting register_names reads all general-purpose registers, which is behavioral detail rather than selection guidance.

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