Skip to main content
Glama
proteus-mcp
by YaxOFF

firmware_build

Compile AVR C sources with avr-gcc into .elf/.hex files for a specified MCU and clock, returning the hex path, flash/RAM usage and warnings so you can verify firmware builds.

Instructions

[firmware] Compile AVR C sources with avr-gcc (the copy bundled with Proteus is found automatically) to .elf/.hex. mcu is a Proteus device or gcc name (ATMEGA328P / atmega328p); f_cpu in Hz. Returns hex path, flash/RAM bytes and warnings; compiler errors are returned in the error hint.

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": {
      "sources": "<sources>",
      "mcu": "<mcu>",
      "f_cpu": "<f_cpu>",
      "out_dir": "<out_dir>"
    },
    "name": "firmware_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
mcuYes
f_cpuYes
definesNo
out_dirYes
sourcesYes
include_dirsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses where avr-gcc comes from (the bundled Proteus copy, auto-discovered), what is produced (hex path, flash/RAM bytes, warnings), and how failures surface (compiler errors in the error hint). It omits whether existing files in out_dir are overwritten and any timeout/latency behavior.

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 action and outputs, then parameter facts, then return values. Dense but nearly every clause earns its place; the parenthetical about the bundled compiler is worth keeping, though the run-on sentences could be broken up.

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?

For a 6-parameter, 0%-coverage, annotation-free tool, the description covers the core contract (inputs, compiler source, outputs, error channel) but leaves half the parameters undocumented and says nothing about overwrite behavior or working-directory expectations.

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

Parameters3/5

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

Schema coverage is 0%, so the description must compensate and only partly does: mcu (Proteus device or gcc name, with example casing) and f_cpu (Hz) are explained, sources is implied, but out_dir, defines, and include_dirs get no meaning or format guidance.

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?

States a specific verb and resource ('Compile AVR C sources with avr-gcc') plus the output artifacts ('.elf/.hex'), and the '[firmware]' prefix places it clearly against siblings such as firmware_load, which consumes rather than produces a binary.

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?

The description implies the build step through the firmware prefix and output artifacts, and tells the agent what mcu and f_cpu accept, but it never states when to call this versus alternatives (e.g. that firmware_load comes after a successful build) or any preconditions.

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