Skip to main content
Glama

firmware_release

Executes the complete MCU firmware release: compiles with Keil, verifies a .bin checksum with MD5, uploads it to FTP, and publishes MQTT OTA commands to devices.

Instructions

Execute full MCU firmware release pipeline:

  1. Keil command-line compilation (uVision.com -b or -r).

  2. Automatic discovery of latest .bin firmware with timestamp freshness verification.

  3. Calculate MD5 checksum.

  4. Upload .bin binary to FTP server.

  5. Publish MQTT OTA upgrade command (mcu_up) to target device topics.

Args: board_id: Optional board identifier (e.g. 'board_a') containing release config. rebuild: Force full Keil rebuild (-r) instead of incremental (-b). skip_build: Skip Keil compilation and use latest or specified existing binary. firmware_path: Explicit path to .bin file (bypasses auto-discovery). version: Firmware version string (e.g. '2.1.11'). If None, extracted from APP/config/config.h. device_ids: Target device ID(s) or topic(s). If None, taken from config. config_path: Path to custom firmware_release_config.json file. save_config: Save executed release artifact info back to the config file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rebuildNo
versionNo
board_idNo
device_idsNo
skip_buildNo
config_pathNo
save_configNo
firmware_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing side effects, and it does so well by listing compilation, checksum generation, FTP upload, and MQTT OTA command publication. It also reveals behavioral nuances such as timestamp freshness verification, config-based fallback for device_ids, and version extraction from config.h.

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 well-organized: a numbered pipeline overview followed by a compact, line-per-parameter semantic list. Every sentence adds information, and the structure lets an agent quickly understand both workflow and parameters without extraneous prose.

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

Completeness5/5

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

For an 8-parameter mutating pipeline with no annotations and no schema descriptions, the description is nearly self-contained: it defines the full procedure, all parameters, fallback behaviors, and key side effects. Since an output schema exists, omitting return-value details is acceptable.

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 description coverage is 0%, so the description must compensate, and it does comprehensively. The Args block explains each parameter's role, including conditional behavior ('If None, taken from config'), build-mode differences (-r vs -b), and the purpose of save_config. This exceeds what the bare schema provides.

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 states a specific verb-resource pair: 'Execute full MCU firmware release pipeline', then enumerates all concrete steps (Keil compile, .bin discovery, MD5, FTP upload, MQTT publish). This clearly differentiates it from siblings like firmware_build, firmware_upload, and firmware_notify by describing the combined end-to-end release operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description communicates clear context: this tool covers the whole release pipeline, and the parameter notes clarify substitutions (e.g. skip_build, firmware_path, device_ids) that alter the execution path. It does not explicitly name alternative sibling tools or state when not to use it, but the 'full pipeline' phrasing makes the intended use apparent.

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