Skip to main content
Glama
brovk2008

STM32Cube-MCP

by brovk2008

stm32_write_option_bytes

Write hardware option bytes on STM32 microcontrollers to configure settings like read protection and brown-out level.

Instructions

Modifies hardware option bytes (e.g. options=['RDP=0xAA', 'BOR_LEV=0']).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoSWD
optionsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description must carry the behavioral burden, but it only says 'Modifies', implying a mutating operation without detailing effects, reversibility, or prerequisites like specific hardware connections or security implications (e.g., RDP levels). It does not disclose what happens if invalid options are given or if a reset is needed.

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 description is concise, with one sentence that front-loads the core action and an example. However, it could add more structured detail without becoming verbose; the brevity is a trade-off that reduces completeness.

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?

Given the tool's complexity (modifying hardware settings) and lack of annotations, the description is insufficient. It needs to cover parameter details, potential risks, and prerequisites. The presence of output schema is unknown, but the description does not explain return values, so an agent may lack critical context.

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%, so the description must compensate, but it only provides an example for the 'options' parameter. It does not explain the 'port' parameter (default 'SWD') or its valid values, leaving the parameter semantics incomplete.

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 clearly states the tool modifies hardware option bytes, specifying the resource (option bytes) and providing an example of the options format. This distinguishes it from siblings like stm32_read_option_bytes, which reads instead of writes.

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 usage for modifying option bytes, but it does not explicitly state when to use this tool versus alternatives like stm32_read_option_bytes or stm32_flash_firmware. No exclusions or alternatives are mentioned, leaving some ambiguity for an agent.

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