Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_cdc

Idempotent

Send typed CDC control verbs to a CrossPad through the crosspad-hil daemon and get parsed replies for apps, pads, LEDs, audio, BLE and system commands, plus raw command lines.

Instructions

[ESP HW] Send typed CDC control verbs (main/hil_control.cpp) to a CrossPad through the crosspad-hil daemon and return the parsed replies. The verb families are apps, kits, pads, encoder, LEDs, memory, audio tasks, BLE and system, plus raw for any literal command line. Typed verbs return parsed objects; raw returns the line, a best-effort parse and more_lines (the lines the reply continues on, e.g. COREDUMP_INFO bt:/exc:, RESET_LOG rows). action picks the operation inside a verb family (listed on that parameter). system bootloader_request / stm_dfu, and raw BOOTLOADER_REQUEST, STM_DFU, OTA_BEGIN and OTA_DELTA, need confirmation; every other raw line (STM_FW_UPDATE, FW_SWITCH, FS_DELETE too) is sent as given. To drive the UI use crosspad_ui; USB profile switches go through crosspad_usb_mode, not raw USB_AUDIO. No CDC exists in the audio USB profile.

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": {
      "verb": "<verb>"
    },
    "name": "crosspad_cdc"
  }
}

Input Schema

NameRequiredDescriptionDefault
msNoenc press: hold time; ble scan: duration
onNoaudio tasks: resume (true) or park (false) the RT mixer
cmdNoraw: exact CDC command line, e.g. 'KIT_STATUS'
idxNopad press/release/pressure/info: pad index 0..15
valNopad pressure: 0..255
velNopad press / ble send: velocity 0..127
addrNoble connect: peer address AA:BB:CC:DD:EE:FF
modeNoble start: 0=server 1=host
nameNoapp start: app name as listed by action=list
noteNoble send: MIDI note
verbYesVerb family; `raw` sends one literal CDC line
deltaNoenc rotate: detents, may be negative
resetNopad stats: reset counters after reading
semisNoble txoff: send transpose in semitones (not persisted)
actionNoOperation inside the family; not used by raw. app: list|start name|stop|destroy|self_close|versions. kit: list|status|load kit_id. pad: press idx vel|release idx|pressure idx val|stats [reset]|notes|info idx. enc: rotate delta|press [ms]|group|focus|state|ui_state. led: state. mem: info|blocks. audio: level|tasks on|smpl_peak. ble: status|start mode|stop|scan ms|devices|connect addr|disconnect|send note vel|txoff semis. system: cdc_stats|bootloader_request|stm_dfu.
deviceNoDevice id (dev_xxxx) or port; omit when exactly one CrossPad is connected
expectNoraw: reply prefix to wait for (default: from the verb catalog)
followNoraw: also collect the lines the reply continues on (they start with a space, e.g. COREDUMP_INFO bt:/exc:) into more_lines; default from the verb catalog
kit_idNokit load: kit id from action=list
wait_sNoapp start / kit load: how long to wait for the device to confirm
timeout_msNoraw: reply timeout
confirm_tokenNoToken from a previous confirmation_required result (danger verbs only)

Output Schema

NameRequiredDescriptionDefault
tsNo
docsNo
hintNo
lineNo
nextNo
toolNo
verbNo
errorNo
deviceNo
noticeNo
parsedNo
resultNo
rtt_msNo
detailsNo
outcomeNo
successYes
more_linesNo
elicitationNo
extra_linesNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, it discloses which operations require confirmation (system bootloader_request / stm_dfu and raw BOOTLOADER_REQUEST, STM_DFU, OTA_BEGIN, OTA_DELTA) and that a confirm_token from a prior confirmation_required result is needed, plus that everything else, including FS_DELETE and FW_SWITCH, is sent as given. That is real side-effect context the annotations don't carry. Minor gaps: it does not describe daemon-unreachable or timeout failure behavior, and "sent as given" for firmware/delete lines sits somewhat awkwardly with idempotentHint=true.

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?

The purpose and the sibling routing come first, then the detail, which is the right order for a 22-parameter tool. The prose is dense and semicolon-heavy but almost every clause carries distinct information; only the parenthetical file reference (main/hil_control.cpp) adds little for an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool this complex, the description is complete: confirmation flow, raw versus typed replies, continuation-line handling, device selection, and the sibling alternatives are all covered, and the output schema means return values need not be restated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the structured baseline already carries most of the semantics. The description still adds real value by mapping each verb family to its action grammar (e.g. pad: press idx vel|release idx|pressure idx val|stats [reset]) and by explaining how raw/expect/follow interlock and what more_lines contains (COREDUMP_INFO bt:/exc:, RESET_LOG rows).

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 opens with a specific verb and resource: send typed CDC control verbs to a CrossPad through the crosspad-hil daemon and get parsed replies back. It then enumerates the verb families (apps, kits, pads, encoder, LEDs, memory, audio, BLE, system, raw), so an agent knows the exact scope before opening the schema.

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

Usage Guidelines5/5

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

It routes an agent to the right sibling explicitly: "To drive the UI use crosspad_ui; USB profile switches go through crosspad_usb_mode, not raw USB_AUDIO." It also states the preconditions that select raw over typed verbs (literal command lines) and the hardware limit that "No CDC exists in the audio USB profile."

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