Skip to main content
Glama

Test firmware in the emulator

test_firmware

Run the compiled firmware in the emulator: serial output, pin history, PWM, OLED drawing, I2S audio summary. inputs: [{t, module, ms, value, volts, temp, hum, steps, press, key, uid, x, y, values, hz, level, charging, full}] (inmp441 microphone: hz + level 0..1, ms; li_battery: volts of the cell, charging, full). Any microcontroller pin without a simulated part: {t, net (or pin, e.g. GPIO4), volts} sets the voltage on an ADC pin (4-20 mA input, divider, analog sensor), {t, net, level: 0|1} drives a contact (float switch, dry contact on a terminal). Costs credits. Requires a PCBBrew account (sign-in).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "test_firmware"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsNo
secondsNo
project_idYesid from create_project or list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / seconds / maximum
      Previous value: -120New value: +300
  2. Changed1 schema field changed
    • changedInput schema / properties / seconds / maximum
      Previous value: -15New value: +120
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, openWorld=false, so the mutation profile is covered; the description adds real context beyond that: credit consumption, an authentication requirement, the emulator's output artifacts, and the injected-stimulus formats. It does not say whether emulator state persists between runs or how partial failures are reported, which keeps it short of a 5.

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 purpose and output list, then the input vocabulary, then the cost/auth caveats; almost every clause carries information. It is dense and reads as a run-on wall of text with heavy parentheticals, which costs some scannability but not accuracy.

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?

There is no output schema, and the description compensates by naming the artifacts the emulator yields, so an agent knows what comes back. Combined with the detailed stimulus formats, the only real gap is the undocumented `seconds` runtime bound and any guidance on how long a run takes or how credit spend scales.

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?

With only 33% schema coverage and a bare "array of objects" inputs property, the description does the heavy lifting by documenting the stimulus object shape, per-part fields for the I2S microphone and li_battery, and the ADC-voltage vs digital-contact injection forms. The `seconds` parameter is documented only by the schema's 1-300 bounds and gets no explanation in the description, so this falls short of full compensation.

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 leads with a specific verb and resource: "Run the compiled firmware in the emulator," and immediately enumerates what the run produces (serial output, pin history, PWM, OLED drawing, I2S audio summary). That output list makes it clearly distinct from set_firmware (which stages firmware) and from simulate_circuit, without needing to name them.

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 only implied: the phrase "compiled firmware" suggests this runs after a build, and the description notes prerequisites (costs credits, requires a PCBBrew account/sign-in). There is no explicit statement of when to choose this over simulate_circuit, and no when-not guidance or mention of sibling tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources