Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_usb_mode

Idempotent

Read or switch the CrossPad USB profile to get CDC control ports for crosspad_cdc calls or enable UAC2 audio capture without CDC.

Instructions

[ESP HW] Read or switch the CrossPad's USB profile through the crosspad-hil daemon. action='get' returns the current profile and the ports that exist in it (cdc, console, uac2, esp_midi). action='set' mode='default' is MIDI + CDC, the control port every crosspad_cdc / crosspad_console call needs; mode='audio' is MIDI + UAC2 capture with NO CDC, so crosspad_cdc fails with NO_CDC_IN_AUDIO_MODE until you switch back. The STM32 bridge console survives both profiles. wait=true (default) blocks until the device re-enumerates and reports the refreshed ports.

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": {
      "action": "<action>"
    },
    "name": "crosspad_usb_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoRequired for action='set'. 'default' = MIDI + CDC (control port available); 'audio' = MIDI + UAC2 (NO CDC — crosspad_cdc stops working until you switch back).
waitNoaction='set': wait for the device to re-enumerate in the new profile before returning (default true). false returns immediately and the reported ports are the pre-switch ones.
actionYes'get' reads the current profile from devices.list; 'set' switches it.
deviceNoDevice id (dev_xxxx) or one of its port paths; omit when exactly one CrossPad is connected.

Output Schema

NameRequiredDescriptionDefault
tsNo
docsNo
hintNo
modeNo
nextNo
toolNo
errorNo
portsNo
actionNo
deviceNo
noticeNo
detailsNo
outcomeNo
successYes
elicitationNo
confirmationNo
requested_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=true, destructive=false, openWorld=false. The description goes well beyond them by disclosing re-enumeration behavior, that wait=true blocks until the device re-enumerates, that wait=false returns pre-switch ports, that CDC disappears in audio mode with a specific error code, and that the STM32 bridge console survives both profiles. This is exactly the side-effect context the annotations cannot convey.

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?

Dense and front-loaded, leading with the verb and resource before the mode semantics. Every sentence carries operational information, though the mode descriptions partially duplicate the enum descriptions in the schema.

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?

An output schema exists, so return values need no explanation, and the description still covers the risky parts: what breaks in audio mode, how wait interacts with reported ports, and which device identifier to omit when only one CrossPad is connected. Nothing an agent needs to invoke it safely is missing.

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 baseline is 3, but the description adds meaning the schema doesn't carry on its own: it ties 'mode' to downstream tool breakage and ties 'wait' to a re-enumeration window with a stated consequence for the returned ports. The cross-tool semantics of 'mode' are the main added value.

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?

States a specific verb pair (read or switch) plus the resource (the CrossPad's USB profile) and names the transport (crosspad-hil daemon). The 'get' vs 'set' split is spelled out immediately, and the sibling references (crosspad_cdc, crosspad_console) make the relationship to the CDC/console tools unambiguous.

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

Usage Guidelines4/5

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

Gives concrete conditional guidance: 'default' is the profile every crosspad_cdc/crosspad_console call needs, and 'audio' breaks crosspad_cdc with NO_CDC_IN_AUDIO_MODE until you switch back. That tells the agent both when to pick each mode and the failure it must recover from. It stops short of naming an alternative tool for merely inspecting port state, so not a full 5.

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