Skip to main content
Glama

configure_bitstream

Load an ECP5 .bit file into FPGA SRAM over JTAG to run custom gateware, replacing the current design; optionally wait for USB re-enumeration.

Instructions

Load an arbitrary bitstream file into FPGA SRAM over JTAG (volatile). Stops the running gateware.

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": {
      "path": "<path>"
    },
    "name": "configure_bitstream"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to an ECP5 .bit file on this machine.
waitNoWait for USB re-enumeration afterwards.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses two behavioral traits annotations do not: the load is volatile (lost without persistent flashing) and it terminates the currently running gateware. That side-effect warning is genuinely useful for a mutation tool. It stops short of explaining timing, disruption duration, or USB re-enumeration behavior tied to 'wait'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with zero filler, the action stated first and the disruptive side effect immediately after. Every clause earns its place.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The description supplies the one thing structured fields cannot: the operational consequence of stopping running gateware. Only minor gaps remain around timing and permissions.

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 100%, so both 'path' and 'wait' are already documented in the schema, and the description adds no format or behavior detail beyond what the schema provides. Baseline 3 is appropriate when the schema carries the parameter burden.

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 states a specific verb (load), resource (bitstream file), and target/method (FPGA SRAM over JTAG), plus the crucial qualifier 'volatile'. That scope distinguishes it cleanly from the persistent-flashing siblings such as flash_gateware and flash_file.

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

Usage Guidelines4/5

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

The description conveys the operative context: this is the volatile, SRAM-based load path rather than a flash write, so an agent can infer when it applies. It does not explicitly name an alternative or state exclusions (e.g. 'use flash_gateware for persistence'), so it falls short of full routing guidance.

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