Skip to main content
Glama
proteus-mcp
by YaxOFF

firmware_load

Loads a .hex file into a referenced microcontroller and optionally sets clock frequency, enabling firmware updates for live Proteus projects or offline circuits.

Instructions

[firmware] Point microcontroller ref at a .hex file (PROGRAM) and optionally set its clock. With Proteus open (simulation stopped) it changes the live project; otherwise the offline circuit (then save_project). Typical loop: firmware_build -> firmware_load -> sim_start -> probe/testbench. For AVR parts clock_hz also clears the CLKDIV8 fuse so the simulated CPU really runs at clock_hz.

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": {
      "ref": "<ref>",
      "hex_path": "<hex_path>"
    },
    "name": "firmware_load"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
clock_hzNo
hex_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses the live-vs-offline branch, the simulation-stopped precondition, and the non-obvious side effect that clock_hz clears the CLKDIV8 fuse on AVR parts. It stops short of saying what happens on failure (bad path, unknown ref) or what a successful call returns.

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 core action, then mode branching, then the workflow, then the clock caveat — a sensible ordering with no filler sentences. Slightly dense in places ("probe/testbench"), but every sentence carries 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?

For a side-effecting three-parameter tool with no annotations and no output schema, the description covers preconditions and workflow but says nothing about return values or error behavior, so an agent cannot predict the result of a call. Adequate but with a clear gap on outcomes.

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%, so the description must compensate and largely does: ref maps to the microcontroller target, hex_path to a .hex file loaded into PROGRAM memory, and clock_hz to the optional CPU clock with AVR-specific fuse behavior. What is missing is the expected form of `ref` (designator vs. library name) and whether hex_path must be absolute or relative.

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: point microcontroller `ref` at a .hex file and optionally set its clock. The bracketed [firmware] tag and the mention of PROGRAM memory make it immediately distinguishable from firmware_build and sim_start.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly covers both modes (Proteus open with simulation stopped vs. offline circuit requiring a later save_project) and names the intended sequence firmware_build -> firmware_load -> sim_start -> probe/testbench. Prerequisite state and follow-up action are both stated, leaving little to inference.

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