Skip to main content
Glama

Get firmware

get_firmware

Generates complete robot firmware or Python script for ESP32, Arduino Uno, or Raspberry Pi from the fitted body and wiring pin map, including motor, sensor, servo, display, and autopilot support.

Instructions

A complete program for the real robot, generated from the fitted body and the wiring pin map: an Arduino sketch (rover_firmware.ino) for "esp32" / "uno", or a Python script (rover.py) for "raspberrypi". It drives the TB6612FNG wheels, reads every enabled sensor, turns the head servo (with light tracking), draws faces on the display and runs the same auto emotions / rule-based autopilot as the simulator. Text commands over Serial 115200 / stdin: READ, F|B|L|R , AUTO 0|1, POWER <%>, HEAD , TRACK 0|1, EMO [text], SAY , STOP. Returns { name, text }. board switches the board first.

Input Schema

NameRequiredDescriptionDefault
boardNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses substantial behavior: it generates an Arduino sketch or Python script, returns { name, text }, and notes that `board` switches the board first. It also describes the generated firmware's runtime behavior and serial/stdin command protocol, which gives the agent rich context for what to expect.

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?

The purpose is front-loaded and there is no filler, but the description is a dense run-on with a long embedded command list. It is information-rich and mostly earns its length, though the structure could be easier to scan.

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?

There is no output schema, but the description supplies the return shape, board behavior, generated artifact variants, and runtime command protocol. For an agent invoking this tool, the key behavioral and output information is present.

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 0%, but the description compensates well for the single `board` parameter by mapping `esp32`/`uno` to an Arduino sketch, `raspberrypi` to a Python script, and noting that it switches the board first. It stops short of stating whether `board` is optional or what the default is when omitted.

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?

The description states a specific resource and action: generating a complete robot program from the fitted body and wiring pin map, with concrete output filenames and board variants. It is clear what the tool produces, though it does not explicitly contrast itself with siblings like get_program or run_program.

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?

Usage is implied by the phrase 'complete program for the real robot' and the board variants, but the description never explicitly says when to use this tool versus alternatives such as run_program or get_program, nor does it state exclusions.

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