Skip to main content
Glama

get_svd_registers

Retrieve all registers for a specified peripheral on a device to inspect its configuration and verify memory-mapped settings during STM32 debugging.

Instructions

Get all registers of specified peripheral / 获取指定外设的所有寄存器.

Args: device_name: Device name / 设备名称 peripheral_name: Peripheral name / 外设名称

Returns: Register list / 寄存器列表

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": {
      "device_name": "<device_name>",
      "peripheral_name": "<peripheral_name>"
    },
    "name": "get_svd_registers"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_nameYes
peripheral_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, yet it says nothing about read-only safety, whether an unknown device/peripheral raises or returns empty, or whether the register set is cached. Only the bare 'Returns: Register list' hint is given.

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?

Short and front-loaded, with a clear Args/Returns layout and no filler. The bilingual repetition of each parameter name adds redundancy without adding meaning.

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-value explanation is not required, but the description leaves the name-resolution workflow and error behavior unstated for a tool whose parameters are completely undocumented in the schema. It is not sufficient on its own for reliable invocation.

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% and the description merely restates the two parameter names in English and Chinese without explaining accepted formats, case sensitivity, or where valid values come from. With low coverage the description should compensate, and it does not.

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 ('Get all registers of specified peripheral'), which an agent can distinguish from the sibling get_svd_peripherals by the level of the SVD hierarchy addressed. It does not explicitly name or contrast with any sibling, so it stops short of a 5.

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?

The description implies a two-step hierarchy lookup (device then peripheral) but never states when to use this rather than read_registers or get_svd_peripherals, nor any prerequisite such as resolving names via list_svd_devices first. Usage is inferable from the tool's scope alone.

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