Skip to main content
Glama
brovk2008

STM32Cube-MCP

by brovk2008

stm32_update_ioc

Update or insert a configuration property in an STM32CubeMX .ioc file by specifying its key and value, enabling direct modification of MCU settings.

Instructions

Updates or inserts a configuration property in an STM32CubeMX .ioc file (e.g. key='RCC.SYSCLKFreq_VALUE', value='84000000').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
valueYes
ioc_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

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

There are no annotations, so the description carries the full burden of behavioral disclosure. It does state that the tool mutates the .ioc file and has upsert semantics, but it does not disclose side effects, path/validation behavior, reversibility, or any prerequisites. For a mutation tool with zero annotation coverage, this is a notable gap.

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?

The entire description is one focused sentence with an illustrative example. There is no redundant wording, and the core operation is stated up front.

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 simple three-string-parameter mutation tool, the description is mostly adequate, especially since an output schema exists to explain return values. Still, it lacks full parameter semantics and explicit guidance on when to prefer this over related .ioc or project tools, so completeness is only moderate.

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%, so the description must compensate. It adds a useful example showing that 'key' is a dotted STM32CubeMX property path and 'value' is a string, but it does not explicitly define 'ioc_path' or describe formats, constraints, or edge cases for any parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Updates or inserts'), a clear resource ('configuration property in an STM32CubeMX .ioc file'), and includes a concrete key/value example. This makes it clearly distinct from sibling read/parse/build/flash tools even without opening the schema.

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 when to use it: when a property in an .ioc file needs to be updated or inserted. However, it does not explicitly state when not to use it or name alternatives such as stm32_parse_ioc for reading properties, leaving some routing to inference.

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