Skip to main content
Glama

Write and compile firmware

set_firmware

Arduino firmware for the design's microcontroller board: compiles (30-180 s, may return running) and prepares the simulator. Returns compile errors. 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>",
      "sketch": "<sketch>"
    },
    "name": "set_firmware"
  }
}

Input Schema

NameRequiredDescriptionDefault
hmiNo
sketchYes
librariesNo
project_idYesid from create_project or list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing latency (30-180 s), asynchronous behavior (may return a running job, relevant to wait_job), the fact that it costs credits, and that a signed-in PCBBrew account is required. It also states the return content (compile errors). That is exactly the operational context annotations cannot carry.

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?

Compact and front-loaded, leading with what is produced before the cost and latency caveats. The telegraphic style ('Costs credits. Requires a PCBBrew account') is terse but every sentence carries distinct information.

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

Completeness3/5

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

With no output schema, the description usefully covers the return value and the async/cost/auth constraints. However, the nested `hmi` parameter and the shape of `sketch`/`libraries` remain entirely unexplained, which leaves a real gap for a tool with a nested object input.

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

Parameters2/5

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

Schema description coverage is only 25% and four parameters exist, including a nested `hmi` object with no documented shape. The description adds nothing about `sketch`, `libraries`, or `hmi` semantics, so the meaning of most inputs must be guessed.

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?

Names a specific action and resource: compiles Arduino firmware for the design's microcontroller board, and also prepares the simulator. It does not reference the sibling test_firmware, so the boundary between writing/compiling and testing is left implicit, but the core operation is unambiguous.

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 rather than stated: 'prepares the simulator' hints that this should run before simulation, and the compile-error return hints at an iterate-until-clean loop. There is no explicit when-to-use, when-not, or named alternative such as test_firmware.

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