Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_midi

Idempotent

Send MIDI notes, SysEx frames, echo timing tests, or routing queries to a CrossPad device or PC simulator to validate hardware and simulated workflows.

Instructions

[PC sim | ESP HW] Send MIDI to a CrossPad board (target='device', through the crosspad-hil daemon) or to the running PC simulator (target='sim', over its TCP remote control). Device actions: note (on/off), sysex (one raw frame 'F0 7D … F7', manufacturer 0x7D is CrossPad's), echo_rtt (n echo frames, returns {sent, received, lost, rtt_ms:{p50,p90,max}}), query_route (the audio routing state, same as crosspad_audio_route action='query'). role='esp' (default) is the ESP's native USB MIDI, the only port that answers queries; role='stm' is the STM32 bridge port. Sim: type 'note_on'|'note_off' need note; 'cc' and 'program_change' are not implemented by the sim and fail fast. USB profile switches go through crosspad_usb_mode, not a hand-built 0x1B frame.

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": {
      "target": "<target>"
    },
    "name": "crosspad_midi"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNodevice/echo_rtt: how many echo frames to send (default 20).
onNodevice/note: true = note on, false = note off.
velNodevice/note: velocity 0-127 (default 100, applied by the daemon).
noteNoMIDI note number 0-127.
roleNoWhich MIDI endpoint: 'esp' (default) = the ESP's native USB MIDI, the only port that answers queries; 'stm' = the STM32 bridge port ('CrossPad MIDI+Serial').
typeNotarget='sim': event type. note_on/note_off need `note`; cc and program_change are not implemented by the sim and fail fast.
frameNoRaw SysEx frame as hex bytes, e.g. 'F0 7D 1D 10 F7'. Manufacturer 0x7D is CrossPad's; the daemon refuses the host-denylisted frames.
valueNosim/cc: controller value.
actionNotarget='device': note = one note on/off; sysex = one raw frame; echo_rtt = round-trip timing over SysEx echo; query_route = read the audio routing state.
cc_numNosim/cc: controller number.
deviceNoDevice id (dev_xxxx) or one of its port paths; omit when exactly one CrossPad is connected.
targetYes'device' = a connected CrossPad through the crosspad-hil daemon; 'sim' = the running PC simulator. Required — no default.
channelNoMIDI channel 0-15 (default 0).
programNosim/program_change: program number.
velocityNosim: velocity (default 127 for note_on, 0 for note_off).

Output Schema

NameRequiredDescriptionDefault
tsNo
docsNo
hintNo
nextNo
roleNo
toolNo
typeNo
errorNo
actionNo
deviceNo
noticeNo
resultNo
targetNo
channelNo
detailsNo
outcomeNo
successYes
elicitationNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0
  2. Removedv10.2.0
  3. First observedv9.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false and idempotent=true, so the description's added value is in failure modes: sim 'cc'/'program_change' fail fast, the daemon refuses host-denylisted SysEx frames, and only the ESP port answers queries. That is meaningful context beyond the annotations, though it does not address the slightly surprising idempotentHint=true for a packet-sending tool or whether note state persists.

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 what and the two-target split are front-loaded, and the bracketed '[PC sim | ESP HW]' prefix signals the shape immediately. It is dense but well-ordered; the only waste is re-explaining a few per-parameter constraints that the schema already carries.

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 15-parameter, two-mode tool this covers the decision axes that matter: which target, which action, which role, and where the boundary lies with crosspad_usb_mode and crosspad_audio_route. Return values need not be explained since an output schema exists.

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% with 15 well-documented parameters, so the baseline is 3. Most of the description's parameter text (default velocity applied by the daemon, 0x7D manufacturer, the esp-only query port, sim unimplemented types) is restated verbatim in the schema rather than adding new meaning.

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 MIDI to a CrossPad board') and immediately splits the two execution paths (target='device' via the crosspad-hil daemon vs target='sim' over TCP remote control). It also disambiguates from siblings by naming crosspad_audio_route for query_route and crosspad_usb_mode for USB profile switches, so an agent can route correctly 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 Guidelines5/5

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

It gives explicit when-to-use branching: target='device' for connected hardware vs target='sim' for the PC simulator, role='esp' only for the port that answers queries, and 'stm' for the bridge port. It also states a concrete exclusion with the alternative ('USB profile switches go through crosspad_usb_mode, not a hand-built 0x1B frame').

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