Skip to main content
Glama

firmware_build

Compile MCU firmware via Keil uVision CLI, verifying a fresh .bin is produced. Supports incremental or full rebuilds with optional board and config selection.

Instructions

Compile MCU firmware using Keil uVision command-line interface.

Verifies that a fresh .bin binary was produced by the compilation.

Args: board_id: Optional board identifier containing release config. rebuild: Force full rebuild (-r) instead of incremental (-b). config_path: Optional custom firmware release config file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rebuildNo
board_idNo
config_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.4/5.0
Behavior4/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. It discloses that compilation invokes Keil uVision's command-line interface and that the tool verifies a fresh .bin is produced, which is meaningful behavioral context. It does not mention environmental prerequisites or failure modes, but the core behavior is transparent.

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 compact and front-loaded with the core purpose, followed by a useful behavioral note and a clearly structured Args list. No filler or redundancy.

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?

With 3 optional parameters, an output schema, and no annotations, this description covers the main operation and parameter semantics adequately. Minor gaps remain, such as assumptions about Keil being installed and the default behavior when board_id or config_path are omitted, but these do not prevent correct use.

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

Parameters4/5

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

Schema description coverage is 0%, but the Args section provides useful explanations for all three parameters: rebuild maps to -r/-b flags, board_id selects a board with release config, and config_path supplies a custom release config file. This compensates well for the bare schema, though the descriptions remain somewhat terse.

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 opens with a specific verb and resource: 'Compile MCU firmware using Keil uVision command-line interface.' It also adds a verification behavior ('Verifies that a fresh .bin binary was produced'), which clearly distinguishes it from sibling tools like firmware_upload, firmware_release, or firmware_get_version.

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 first sentence establishes clear usage context: use this tool when you need to compile MCU firmware via Keil. It does not explicitly name alternatives or say when not to use it, but the build purpose is distinct enough among siblings. No misleading exclusions are present.

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