Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_audio_route

Idempotent

Read or set runtime CrossPad ES8388 audio routing over USB MIDI SysEx, including ADC inputs, DAC outputs, volumes, and mutes; query full state or apply targeted codec changes.

Instructions

[ESP HW] Read or set the runtime audio routing of a CrossPad (the ES8388 codecs' ADC inputs, DAC outputs, volumes and mutes) over USB MIDI SysEx. It is sent as CROSSPAD_CMD_AUDIO_ROUTE 0x1D through the crosspad-hil daemon and works in both USB profiles. action='query' reads the full state; action='set' applies any subset of adc_input, mic_src, dac_output, volume, mute (per-codec fields need codec 0|1). Codec 0 LINE2 is the built-in mics; every other input is the DAC-to-ADC loop, and codec 1 LINE1 is the near-unity path with the better SNR (compresses above ~0.2 FS input). Routing reverts to firmware defaults on device reset; only the named preset is persisted, by the firmware.

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_audio_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
muteNoCodec output mute.
codecNoTarget codec for adc_input/dac_output/volume/mute (0 = stock mic path, 1 = PCB-loopback codec).
actionYes'set' applies routing changes; 'query' reads the current state.
deviceNoDevice id (dev_xxxx) or one of its port paths; omit when exactly one CrossPad is connected.
volumeNoCodec output volume 0-100.
mic_srcNoWhich codec feeds the USB mic path.
adc_inputNoADC input mux of `codec`: differential, LINE1 (PCB loop on both codecs) or LINE2 (built-in mics on codec 0, jack on codec 1).
dac_outputNoDAC output route of `codec`.

Output Schema

NameRequiredDescriptionDefault
docsNo
hintNo
nextNo
portNo
sentNo
toolNo
errorNo
stateNo
noticeNo
outcomeNo
successYes
elicitationNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0
  2. Removedv10.2.0
  3. Addedv9.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say non-read-only, idempotent, non-destructive; the description goes well beyond by disclosing persistence semantics (routing reverts to firmware defaults on device reset, only the named preset is persisted by the firmware) and path characteristics (codec 0 LINE2 = built-in mics, other inputs are DAC-to-ADC loop, codec 1 LINE1 has better SNR but compresses above ~0.2 FS). These are exactly the operational facts an agent needs before mutating audio state.

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?

Purpose is front-loaded, then mode semantics, then routing caveats — a sensible order with no filler sentences. Some clauses are densely packed (codec/loopback/SNR in one long sentence), which slightly raises parsing cost.

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 an 8-parameter hardware routing tool with an output schema already covering return values, the description covers transport, mode semantics, field/codec coupling, and persistence behavior. Nothing essential to invoking it correctly appears 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 the baseline is 3; the description earns above that by explaining the codec/input interaction (which inputs are real mics vs loopback, which codec is the low-noise path) and that `set` accepts any subset of fields. It does not clarify `device` selection beyond the schema or the semantics of `mic_src` 0/1.

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?

Names a specific verb pair (read/set), a precise resource (CrossPad runtime audio routing: ES8388 ADC inputs, DAC outputs, volumes, mutes), and the transport (USB MIDI SysEx CROSSPAD_CMD_AUDIO_ROUTE 0x1D via crosspad-hil). An agent can distinguish this from generic audio/input tools without 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 Guidelines4/5

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

Explicitly separates the two modes: action='query' reads full state, action='set' applies a subset, and it notes that per-codec fields require `codec` 0|1. It does not name a sibling alternative (e.g., crosspad_input or crosspad_cdc) or state when a different tool should be preferred, so no exclusion guidance.

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