FastMCP server bridging AI agents to the X-55 Rhino background agent (read/control/tier-1 simulation over the agent's named-pipe control channel).
Strong domain-specific tool design with clear naming (verb_noun pattern: x55_status, x55_set_backlight, x55_load_profile). All 14 tools have descriptions (avg ~180 chars, within 10-1024 baseline). Input schemas present for all tools with typed parameters. However, parameter descriptions are sparse or missing for several tools (e.g., x55_set_curve lacks descriptions for x_sat, y_sat, deadband, curvature, center parameters). Output schemas are not documented, LLMs cannot predict response structure. Error handling descriptions exist (e.g., 'friendly not_writer message') but lack recovery guidance. Tool composition is excellent: single responsibility, clear chaining (e.g., x55_inputs → x55_watch_axis → x55_events). Security is well-handled: no secrets in params, writer-role gating on destructive ops.
Backlight state: last level applied to the hardware (if any), the persisted fallback level from config.json, and whether axis mode is on plus its target. Read-only.
Current per-axis response curves: present/refreshing flags, a generation counter, the resolved axes (unit, selector, name, code, cv tunables), and any axes whose read failed. Read-only. Poll `generation` to detect a completed refresh.
Input events the device produced: button edges, mode-selector changes, and movement on axes registered with ``x55_watch_axis``. Pass the ``next`` cursor from the previous call as ``since`` to get only what happened after that point. Omit ``since`` to read from the oldest buffered event. ``limit`` caps the returned count (default: all). Read-only; works in any role.
Live input snapshot for both units: axes ({code, name, norm}), 1-based pressed-button indices, hat, and the derived mode ("M1"/"M2"/"M3"/"unknown"). Read-only. (The throttle streams only when moved, so its axes populate after the first movement.)
Load (or reload) the active button->keyboard profile. ``path`` = an explicit .toml path persists it as the active profile; ``path=None`` clears the stored path and reloads by the default resolution order. Flush-then-swap, so no keys stick. Writer-only (friendly not_writer while the GUI holds control). Returns the loaded name + binding count.
Output schemas not documented. LLMs cannot predict response structure for any tool. Responses must include fields like 'generation' (x55_curves), 'next' cursor (x55_events), 'name'/'binding_count' (x55_load_profile), but these are not formally declared.
x55_set_curve: parameter descriptions missing for x_sat, y_sat, deadband, curvature, center. LLMs cannot infer what these numeric fields control or their valid ranges. Violates pattern:tool-description.
Error handling lacks recovery guidance. Descriptions mention 'friendly not_writer message' but do not explain what the LLM should do next (retry, ask user, abort). Violates pattern:recovery-guide.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
Active button->keyboard profile: name, enabled flag, resolved file path, and the full binding list (unit, button, action). Read-only.
Ask the agent to re-read every axis's curve from the device (async; the result lands in a later get_curves with a bumped ``generation``). Writer-only (friendly not_writer while the GUI holds control).
Set the green backlight brightness (level 0-100). Writer-only: fails with a friendly not_writer message while the X-55 GUI holds the writer token (close the GUI to let the agent take control). When ``persist`` is true the level is saved to config.json as the fallback that is re-applied on launch/replug; when false it is applied to the hardware only.
Arm/disarm driving the backlight from an analog axis (e.g. RTY 3). Only what you pass is changed. Omit ``unit``/``axis``/``target`` to flip the feature on or off while keeping whichever axis is already configured (the user may have picked one in the tool's axis picker) — passing them would silently re-point the feature somewhere else. ``unit`` = the unit whose axis drives it ("stick"/"throttle"); ``axis`` = the driving selector, formatted into the composite code ``0x0001PPPP`` the agent expects ("0x34" -> "0x00010034", throttle RTY 3); ``target`` = which backlight(s) to drive ("both"/"stick"/"throttle"). Writes config.json and refreshes the agent's cached axis config immediately. The feature runs in whichever process holds the writer token — the agent, or the GUI while its window is open. Any client may call this (not writer-gated). Note an axis parked at its zero end holds the backlight at 0% (off): check the axis position with ``x55_inputs`` before reporting the feature broken.
Write a response curve to one axis (device RAM, re-applied on replug by the running writer). ``unit`` is "stick" or "throttle". ``axis`` is a generic-desktop selector as a hex string ("0x30"/"0x0030"), a decimal string, or an int (a full composite code like "0x00010030" is accepted — its low 16 bits are the selector). ``curve`` selects the firmware curve preset. ``curve=None`` (default) **preserves** the axis's current preset: the tool fetches the live curves via get_curves and reuses that axis's ``cv.curve``; if the axis is absent from the read (never initialised, or the unit isn't present) it falls back to ``0``. Writer-only (friendly not_writer while the GUI holds control). Persists to the ``curves`` section of config.json on success.
Enable or disable button->keyboard mapping (the mapping engine that fires keystrokes via SendInput). Persists ``mapping_enabled``. Writer-only (friendly not_writer while the GUI holds control); disabling flushes held keys.
Agent + device status: writer role, mapping/sim flags, active profile name, per-unit device presence + report counts, backlight level/axis mode, and uptime. Read-only; works in any role.
Long-poll for input events: block until the device produces a button edge, mode change, or watched-axis movement, then return it. ``timeout`` is the max wait in seconds (default: 30); ``0`` means wait forever. Omit ``since`` to wait for the next event after the oldest buffered one; pass a cursor from a prior call to wait for events after that point. Read-only; works in any role.
Register an axis for movement recording (``x55_events`` and ``x55_wait_for_input`` will report it). ``unit`` = "stick" or "throttle"; ``axis`` = the selector ("0x30", "0x0030", or an int). Omit both to clear all watches. Read-only; works in any role.
x55_set_backlight_axis: optional parameters (unit, axis, target) have complex interdependencies ('omit to flip feature on/off while keeping whichever axis is configured'). Dependency is documented in description but not formalized. LLMs may misinterpret.
x55_set_curve: 'axis' parameter accepts multiple formats (hex '0x30', decimal '0x0030', int, composite '0x00010030'). Format flexibility is documented but not formalized as a regex pattern or enum. LLMs may pass invalid formats.