Skip to main content
Glama

stm32_flash_firmware

Flash firmware files (.bin, .hex, .elf, .srec) to STM32 microcontrollers via ST-Link. Supports verification, mass erase, reset, and run.

Instructions

Flash/program firmware file (.bin, .hex, .elf, .srec) to target STM32 MCU with optional verification, mass erase, reset, and run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
snNoST-LINK probe Serial Number
portNoConnection port (SWD, JTAG, COMx, etc.)SWD
verifyNoVerify flashed data against source file
addressNoStart address in hex format (e.g. 0x08000000). Required for .bin files.0x08000000
file_pathYesAbsolute path to firmware binary/elf/hex file
erase_firstNoErase entire flash before writing
reset_and_runNoReset MCU and start execution after flashing
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It mentions optional verification, mass erase, reset, and run, which are important side effects. However, it does not explicitly warn that mass erase is destructive, that reset_and_run defaults to true (per schema), or address failure modes or connection prerequisites, leaving significant behavioral details unspoken.

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 description is a single, well-structured sentence that front-loads the primary action and resource, then lists supported file formats and key optional behaviors. There is no redundant or filler content; every element earns its place.

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?

Given the tool's moderate complexity (7 parameters, destructive operations, no annotations), the description and schema together cover the core function but lack explicit warnings about destructive overwrite and default behaviors. The agent must infer important operational context such as the effect of erase_first and reset_and_run defaults, making it adequate but not complete.

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?

All 7 parameters are fully described in the input schema with 100% coverage, so the baseline is 3. The description only echoes file formats and optional behaviors without adding new semantic detail about parameters like sn, port, address, or the meaning of default values. It does not need to compensate because the schema already provides comprehensive descriptions.

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 flashes/programs firmware files (.bin, .hex, .elf, .srec) to an STM32 MCU, which is a specific verb+resource. This distinguishes it from sibling tools like stm32_write_memory or stm32_erase_memory, as it targets complete firmware images with optional post-flash operations.

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 the tool is for programming firmware files and mentions optional verification, mass erase, reset, and run, giving a clear use case. However, it does not explicitly contrast with alternatives such as stm32_write_memory or stm32_erase_memory, nor provide when-not guidance. The decision to select this tool over siblings is left to inference.

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/Sathvik-smarttrak/Firmware-MCPs'

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