Skip to main content
Glama
h666zhang

vscode-cube-mcp

by h666zhang

cubemx_configure

Apply STM32CubeMX pin and peripheral settings to an .ioc file by executing set commands and saving the updated configuration back to the original file.

Instructions

加载 .ioc,依次执行 set 命令,最后 saveas 写回原文件。

参数: ioc: 工程 .ioc 文件绝对路径(会被写回,先备份再调用) commands: 命令列表,如 ["set mode USART1 Asynchronous", "set pin PB13 GPIO_Output"]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iocYes
commandsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the transparency burden. It discloses the key behavioral trait that the .ioc file 'will be written back' and advises backup, revealing the destructive nature. It also explains the process sequence (load, set, saveas). However, it omits other potential side effects, errors, or prerequisites.

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 main operation is summarized in one dense sentence, followed by a compact parameter list. No redundant phrasing or fluff; every sentence earns its place. The description is front-loaded with the core action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a relatively simple tool with an output schema present, the description covers the key aspects: what it does, parameters, and the write-back risk. It doesn't need to detail return values. However, adding an explicit statement about when to choose this over sibling tools would make it fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description fully compensates by explaining both parameters: ioc as 'absolute path' with a write-back warning, and commands as a 'command list' with concrete examples like 'set mode USART1 Asynchronous'. This adds substantial meaning beyond the bare schema.

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's operation: 'Load .ioc, sequentially execute set commands, finally saveas write back to original file.' This is a specific verb+resource (configure via set commands) and differentiates from siblings like cubemx_load (which only loads) and cubemx_generate (which generates code).

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?

Provides a useful caveat ('backup before calling') but does not explicitly state when to use this tool versus alternatives like cubemx_script or cubemx_generate. There is no 'use this when...' or 'instead of...' guidance, so usage is implied rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/h666zhang/vscode-cube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server