MCP server + dashboard that assists with voice SSB QSOs on a FlexRadio 6400
CQK1AF demonstrates solid tool design with clear naming conventions (verb_noun pattern), comprehensive parameter schemas with types and descriptions, and well-structured DTOs for output. All 16 tools have descriptions and input schemas. However, several tools lack output schema documentation in the visible code, parameter descriptions are sometimes generic, and error handling guidance is minimal. The domain (amateur radio QSO automation) is specialized and well-understood by the tool set, but LLM-facing descriptions could be more explicit about state transitions and prerequisites.
Transmit a CQ call using the configured template. Advances FSM to RECEIVING_REPLY.
Run the three-attempt courtesy check on ``freq_hz``. Gated by the safety interlock and band-plan privileges. TX speaks via Piper out the DAX device when the audio pipeline is online and falls back to narration-only (transcript event, no PTT) otherwise. The S-meter is consulted for clearance.
Send the closing phrase and mark the QSO complete. Advances to CONFIRMING_LOG.
Confirm and log the QSO. Optional ``edits`` dict patches fields before logging. Advances back to IDLE.
Connect to the configured radio. In mock mode this is in-memory.
Disconnect from the radio.
Output schemas not documented in tool definitions. While DTOs (SessionStateDTO, CQResultDTO, etc.) are defined, the tool docstrings do not explicitly state what fields are returned. LLMs cannot plan downstream calls without knowing response structure.
Parameter descriptions lack actionable constraints. E.g., 'Frequency in Hz' does not specify valid range (e.g., 1.8 - 54 MHz for amateur bands). 'Mode' enum is clear, but 'filter_low_hz' and 'filter_high_hz' lack guidance on typical values or constraints.
Error handling and recovery guidance missing. Tools like 'connect_radio' and 'call_cq' can fail (radio offline, no reply), but descriptions do not explain what to do next or how to recover. No ToolError guidance visible in docstrings.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | <=2025-11-25 | v2 |
Emergency stop. Forces PTT off, disarms the session, and transitions FSM to STOPPED.
Send signal report during an active QSO.
Export logged QSOs as ADIF 3.1.0 text.
List recent QSOs from the SQLite store, newest first.
Return current FSM state, slice info, QSO context, pileup, and counters.
Listen for callers up to ``timeout_s`` seconds and return callsigns heard. Pileup is populated by the live STT path (Whisper -> callsign extractor). After the first caller, an additional ``settle_window_s`` is allowed so simultaneous callers are returned together.
Return ranked candidate frequencies in the given band for the operator's class.
Select one callsign from the pileup queue to work next.
Tune the slice. Updates RX freq/mode/filter and the session's tracked band.
Update one field on the active QSO (callsign, name, qth, grid, rst, comment).
State machine prerequisites not documented. Tools like 'exchange_signal_report' and 'complete_qso' require an active QSO (FSM in specific state), but descriptions do not state this precondition. LLMs may call them out of order.
'update_qso_field' is overly generic. Accepting arbitrary 'field' and 'value' strings without enum or validation invites invalid field names. Should enumerate allowed fields (callsign, name, qth, grid, rst, comment) as an enum parameter.