Skip to main content
Glama

Full system firmware upgrade

flash_firmware
Destructive

Flashes a full system firmware image to a CyberBrick board from a supplied base64 .bin, requiring explicit confirmation because interruption can brick the device.

Instructions

Run a full system firmware flash (SYSTEM_UPGRADE) via the app's updateLoaderFirmwareMpy with shouldUpgradeFirmware=true. Executes immediately — multiple reboots, CAN BRICK the device if interrupted. Requires firmwareBinaryB64: the MCP does not replicate the app's cloud package fetch (auth headers + certificate decryption are out of scope), so you must supply the .bin yourself (base64). Requires confirm=true after explicit user approval. DESTRUCTIVE.

Input Schema

NameRequiredDescriptionDefault
regionNo
targetNoWhich device to target — pass exactly one field. If omitted, the app must know exactly one device; ambiguous or unmatched targets are refused.
confirmYesMust be true. Set it only after the user has explicitly approved this specific upgrade on this specific device.
targetVersionNoTarget firmware version string (recorded in checkResult.upgradeFirmwareTo).
firmwareBinaryB64YesBase64 of the firmware .bin image. Required — the app fetches its own copies only via its cloud check, which this tool does not replicate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: immediate execution, multiple reboots, bricking risk if interrupted, and the fact that the MCP does not replicate the app's authenticated cloud package fetch. That last point is exactly the kind of behavioral constraint an agent cannot get from any structured field.

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?

Front-loaded with the operation and its danger, then the required inputs, then the confirmation rule. Nearly every clause carries new information; the trailing 'DESTRUCTIVE.' is mildly redundant given the brick warning and destructiveHint annotation.

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 a 5-parameter destructive mutation with no output schema, the description covers the essential risk profile, the calling prerequisite (user approval), and the surprising input requirement (agent-supplied base64 image). Device targeting rules live in the schema. Nothing critical for a correct call is missing.

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 coverage is 80%, so the baseline would be 3, but the description adds real meaning: it explains *why* firmwareBinaryB64 must be supplied (no cloud fetch, base64 .bin) and that confirm must follow explicit per-device approval. Those are motivations the schema descriptions only partially convey, though target/targetVersion handling in the description is thinner.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run a full system firmware flash (SYSTEM_UPGRADE)') and names the underlying app routine (updateLoaderFirmwareMpy with shouldUpgradeFirmware=true), which pins down exactly which operation this is. It implicitly distinguishes itself from the partial/MPY flash siblings by insisting on the 'full system' scope, but never names flash_mpy or flash_check as the alternatives.

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?

It gives a clear precondition (explicit user approval before confirm=true) and explains why the binary must come from the caller rather than the app's cloud fetch. However, it never says when to prefer this over the closely named siblings flash_mpy, flash_check, or flash_config, leaving the agent to infer the boundary from the word 'full'.

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