Skip to main content
Glama

facedancer_command

Sends commands such as key presses, typed strings, serial writes, or status requests to a running emulated USB device and returns its response.

Instructions

Send a command to the running emulated device (e.g. key_down, type_string, serial_write, status) and return its result.

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": {
      "command": "<command>"
    },
    "name": "facedancer_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoCommand arguments.
commandYesCommand name supported by the running kind (see facedancer_list_device_kinds).
timeout_sNoReply timeout in seconds.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is carried structurally. The description adds only that it targets a running device and returns a result; it says nothing about failure behavior for unsupported commands, device-not-running errors, or what the timeout does on expiry.

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?

A single front-loaded sentence with no preamble or filler. The parenthetical example list is slightly redundant with the command parameter's schema description but still clarifies scope quickly.

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?

Return values are covered by the existing output schema and all three parameters are documented, so the core is sufficient. The description stops short of the prerequisite state (device must be running) and error semantics that an agent would want before invoking a generic dispatcher.

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 command, args and timeout_s are already documented, including the pointer to facedancer_list_device_kinds. The description's examples loosely map to the command parameter but add no format or argument-structure detail beyond the schema.

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 ("Send a command to the running emulated device") and gives concrete command examples (key_down, type_string, serial_write, status). It does not, however, distinguish this generic dispatcher from siblings like facedancer_serial_write or facedancer_type_text, whose names it echoes as example commands, which could confuse tool selection.

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?

Usage is implied: send arbitrary commands to an already-running emulated device, with the schema pointing to facedancer_list_device_kinds for valid command names. There is no explicit guidance on when to prefer this over the dedicated siblings such as facedancer_type_text or facedancer_serial_write, and no stated prerequisites like requiring facedancer_start first.

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