Skip to main content
Glama

read_registers

Read-only

Reads ARM Cortex-M core registers (requires halt) and decoded SCB fault registers while the target runs; choose core, fault, or all to inspect CPU state and diagnose faults.

Instructions

Thanh ghi lõi (cần halt) và/hoặc thanh ghi lỗi SCB đã giải mã (đọc được khi chạy).

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
setNocore

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds real context beyond them: core register access requires the target to be halted, while fault registers can be read while running — a prerequisite an agent must plan around.

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?

One tightly packed sentence with the two modes and their preconditions front-loaded. No filler, though the 'and/or' phrasing adds slight ambiguity about whether both sets can be returned together.

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?

For a one-parameter read-only tool with no output schema this is close to sufficient, but 'cần halt' is ambiguous — it is unclear whether the tool halts the target itself or the caller must halt first, and the default mode is unstated. Those gaps matter for correct invocation.

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% and the single 'set' parameter's enum values (core, fault, all) are undocumented in the schema, so the description must carry the load. It explains what 'core' and 'fault' mean but never names the parameter, never mentions the 'all' value, and does not state that 'core' is the default.

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?

The description names the two specific resources read: core registers and decoded SCB fault registers, and attaches a distinguishing constraint to each (core needs halt, fault readable while running). That is enough for an agent to tell this apart from read_memory or read_periph, though the verb itself is only implied by the tool name.

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?

The halt requirement for core registers versus the run-time readability of SCB fault registers gives a concrete condition for choosing between the two modes. There are no explicit exclusions or named alternatives, but the operational context is clear.

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