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

mcu_ioc_audit

Parses STM32CubeMX .ioc files into a read-only hardware snapshot and cross-checks them against hardware_spec.json to catch configuration mismatches.

Instructions

Parse STM32CubeMX .ioc into a read-only hardware snapshot and cross-check against hardware_spec.json.

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": {
      "ioc_path": "<ioc_path>"
    },
    "name": "mcu_ioc_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_mdNo
ioc_pathYes
hardware_specNo
require_cmakeNo

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?

With no annotations, the description carries the full burden, and 'read-only' is the only safety signal it provides. It does not disclose what the snapshot contains, what happens when hardware_spec is omitted, how mismatches are reported, or what require_cmake gates.

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?

A single front-loaded sentence with no filler, naming the input, the artifact produced, and the validation step. It is efficient, though it is terse enough that the structured gaps are not compensated for.

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 four-parameter tool with no annotations and no output schema, the description is under-specified: two parameters are unexplained and the shape of the audit result (pass/fail, diff list, generated markdown) is not hinted at. An agent could not predict the response or know what out_md and require_cmake do.

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 four parameters, and the description only implicitly explains two of them (ioc_path via '.ioc', hardware_spec via 'hardware_spec.json'). The meaning of out_md (output markdown destination) and require_cmake (a boolean gate, defaulting false) is left completely undocumented.

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 ('Parse STM32CubeMX .ioc') and names both the output ('read-only hardware snapshot') and the cross-check target ('hardware_spec.json'). This is clearly distinct from siblings like mcu_clock_check or mcu_arch_check, though it never explicitly says how it differs from them.

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?

No when-to-use, when-not-to-use, or prerequisite guidance is given. The agent must infer that this runs on an existing .ioc file and precedes the other mcu_* checks, and nothing routes it against mcu_arch_check or mcu_clock_check.

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