Skip to main content
Glama

facedancer_start

Start emulating a USB device on the TARGET-C port in a background worker, loading gateware as needed. Stop it with the companion stop tool.

Instructions

Start emulating a USB device with Facedancer in a background worker process. Loads the facedancer gateware if needed (stops other gateware, writes SoC firmware to flash). Stop with facedancer_stop.

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": {
      "kind": "<kind>"
    },
    "name": "facedancer_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesDevice to emulate on the TARGET-C port.
paramsNoKind-specific parameters (see facedancer_list_device_kinds).
script_pathNokind=script: Python file defining the USBDevice to emulate.
ready_timeout_sNoSeconds to wait for the emulation to be connected.
auto_load_gatewareNoLoad the facedancer gateware (and SoC firmware) first if needed.

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?

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false; the description adds the materially important side effect that starting also 'stops other gateware' and 'writes SoC firmware to flash.' That is real behavioral disclosure beyond the structured fields, and it is the reason to actually read the description. It omits what happens when the ready timeout expires or whether the emulation persists after a failure, which keeps it below a 5.

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 front-loaded sentences: the primary action and scope come first, the gateware side effect second, the teardown instruction last. No restatement of parameter names, no filler, and nothing an agent needs is buried later.

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?

For a stateful start tool with an output schema, this covers the essentials: what starts, where it runs, what it changes on hardware, and how to stop it. The remaining gap is failure behavior - what state the target is left in if gateware loading or the ready timeout fails - which matters for a tool that flashes firmware.

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 every parameter (kind, params, script_path, ready_timeout_s, auto_load_gateware) is already documented in the schema, including enum meanings and the pointer to facedancer_list_device_kinds. The description adds only indirect context - the gateware loading narrative maps to auto_load_gateware - which justifies the baseline 3 rather than more.

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 - 'Start emulating a USB device with Facedancer' - plus the execution scope ('in a background worker process') and the paired teardown tool. An agent can distinguish this from facedancer_stop, facedancer_command, or the analyzer_* family without opening any schema.

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 tells the agent how to end the operation ('Stop with facedancer_stop'), establishing the lifecycle pairing. It stops short of saying when to prefer this over alternatives such as facedancer_command or facedancer_type_text, or when to choose kind=script versus a built-in kind, so it is clear context rather than full routing guidance.

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