Skip to main content
Glama

run_gateware

Loads analyzer, facedancer, or selftest gateware into FPGA SRAM for the current board revision, stopping any running gateware; facedancer can also write SoC firmware to flash.

Instructions

Load a bundled gateware (analyzer, facedancer or selftest) matching the board revision into FPGA SRAM. Volatile (lost on power cycle); stops the running gateware. facedancer may also write SoC firmware to flash.

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": {
      "target": "<target>"
    },
    "name": "run_gateware"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait for USB re-enumeration in the new mode.
targetYesBundled gateware to load into FPGA SRAM.
timeout_sNoRe-enumeration timeout in seconds.
update_soc_firmwareNofacedancer only: write moondancer.bin to SPI flash at 0xB0000 first (required once).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive, closed-world; the description adds substantive behavior beyond that: the load is volatile and lost on power cycle, the running gateware is stopped, and facedancer can additionally write SoC firmware to SPI flash. The flash write is a persistent mutation that sits uneasily with destructiveHint=false, but since it is an intended, documented effect rather than a misstatement of the read/write nature, it is not a direct contradiction.

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?

Two dense sentences, front-loaded with the action and target set, followed by the volatility/state-loss caveat. Nothing is padded, though the facedancer flash-write note is slightly buried at the end rather than attached to the parameter it concerns.

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?

With 100% schema coverage, an output schema, and annotations supplying the safety profile, the description covers what an agent still needs: volatility, disruption of running gateware, and the conditional flash write. Only the relationship to sibling build/flash tools is missing, which is a minor gap for a four-parameter tool.

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 description coverage is 100%, so the schema already explains target, wait, timeout_s and update_soc_firmware. The description reinforces that targets are analyzer/facedancer/selftest and that the facedancer firmware write is optional, but adds no format or edge-case detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Load a bundled gateware ... into FPGA SRAM') plus the enum of valid targets, so the agent knows exactly what operation is performed. It implicitly distinguishes itself from flash-oriented siblings by emphasizing SRAM and volatility, but never names flash_gateware or build_gateware, so sibling differentiation is left partly to inference.

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?

Useful context is implied: it discloses that it stops the running gateware and that the load is volatile, and it notes facedancer may write SoC firmware to flash. However, there is no explicit 'use flash_gateware instead when you want persistence' or 'call build_gateware first' guidance, so the agent must infer when this is preferred over the adjacent flash/build tools.

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