Skip to main content
Glama
agent-mcu MCP server
by linxi27667

mcu_svd_read

Read peripheral registers from J-Link/GDB or mock snapshots, decode SVD bitfields, and evaluate assertions to verify embedded hardware state.

Instructions

Read peripheral registers from target hardware (J-Link/GDB) or mock snapshot, decode SVD bitfields, and evaluate assertions.

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": {
      "registers": "<registers>"
    },
    "name": "mcu_svd_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
svdNo
haltNo
deviceNo
backendNojlink
mock_jsonNo
registersYes
usb_serialNo
expectationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It hints at backends (J-Link/GDB/mock) and assertion evaluation, but it does not explain the halt parameter's effect on target execution, access requirements, side effects, or error behavior—all critical for a hardware-reading tool.

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 definition is a single front-loaded sentence with no filler, and each clause corresponds to a distinct capability. It is appropriately terse, though the density leaves important gaps that brevity alone cannot excuse.

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?

For an 8-parameter tool with no annotations, no output schema, and zero schema description coverage, a single sentence is far from complete. Key details about the halt behavior, device and USB serial usage, register specification format, expectation syntax, and return values are missing.

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% across 8 parameters, so the description needs to compensate substantially. It partially clarifies backend, mock_json, svd, and expectations through phrases like 'target hardware (J-Link/GDB) or mock snapshot' and 'decode SVD bitfields', but it leaves halt, device, usb_serial, and registers without any added meaning.

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 states a specific verb and resource: reading peripheral registers, decoding SVD bitfields, and evaluating assertions. It is clear what the tool does, but it does not distinguish itself from the sibling mcu_svd_query or explain how their purposes differ.

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 explicit guidance on when to use this tool versus alternatives such as mcu_svd_query, nor any prerequisites or exclusion conditions. The mention of hardware versus mock snapshot implies two modes but does not tell the agent which to choose or when.

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