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

mcu_svd_query

Look up CMSIS-SVD peripheral, register, and bitfield definitions offline to verify addresses and bit layouts before writing embedded register code.

Instructions

Query official CMSIS-SVD peripheral/register/bitfield definitions offline before writing register code.

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

Input Schema

NameRequiredDescriptionDefault
svdNo
deviceNo
registerNo
peripheralNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 behavioral burden. It does add two useful traits: the lookup is 'offline' (no network dependency) and the source is 'official' CMSIS-SVD, implying authoritative reference data. It says nothing about read-only semantics explicitly, return format, what happens when a device/register is not found, or the cost of broad queries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the action, the data domain, and the timing cue all arrive immediately.

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 a lookup tool with four undocumented string parameters, no output schema, and no annotations, this one sentence is not enough. An agent cannot tell whether the parameters are filters, how they combine, or what shape the returned SVD data takes, all of which it must know to call the tool correctly.

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 four free-form string parameters (svd, device, register, peripheral) are given no meaning in the description. The prose only names the resource types being looked up, and notably references 'bitfield' which has no corresponding parameter, leaving the agent to guess how bitfields are addressed. With zero required parameters, it also does not explain what an empty query returns.

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 ('Query') and a specific resource ('official CMSIS-SVD peripheral/register/bitfield definitions'), so the domain is unambiguous. It does not differentiate itself from the sibling mcu_svd_read, which appears to target the same data source, so it falls 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 phrase 'before writing register code' gives a clear temporal cue for when to reach for this tool, which is useful implied guidance. However, no alternative tool is named and there is no statement of when not to use it or how it relates to mcu_svd_read or mcu_arch_check.

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