Skip to main content
Glama
CrossPad

crosspad-mcp-server

by CrossPad

crosspad_audio_route

Read or set audio routing on a connected CrossPad: query current mic source, ADC inputs, DAC outputs, volumes, and mutes, or apply changes to input sources, output routes, volume, and mute per codec.

Instructions

[ESP HW] Runtime audio routing control on a connected CrossPad, over USB MIDI SysEx (CROSSPAD_CMD_AUDIO_ROUTE 0x1D; Linux, needs alsa-utils amidi). Works in both USB modes. • action='query' → read back the full routing state (mic_src, ADC inputs, DAC outputs, volumes, mutes). • action='set' → apply any subset of: adc_input ('diff'|'line1'|'line2'), mic_src (0|1), dac_output ('line1'|'line2'|'all'), volume (0-100), mute. Per-codec fields need codec (0|1). Notes: codec1 LINE1 is the near-unity PCB loopback path (compresses above ~0.2 FS input); routing reverts to firmware defaults on device reset.

Input Schema

TableJSON 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.
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 (floating).
dac_outputNoDAC output route of `codec`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
sentNo
errorNo
stateNo
successYes
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, and the description adds valuable behavioral context: it mentions the USB MIDI SysEx command (0x1D), the 'near-unity PCB loopback path' compression at high input levels, and that routing reverts to firmware defaults on device reset. This goes beyond annotations. Minor gap: no mention of potential side effects (e.g., audio interruption during set) or persistence of settings.

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 description is well-structured with bullet points for actions and parameter lists. It is concise but includes necessary technical details (USB mode, Linux command). Minor redundancy: 'Notes:' section could be integrated more smoothly. Overall, it is efficient and easy to parse.

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

Completeness4/5

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

Given the tool's 7 parameters, full schema coverage, and an output schema, the description is largely complete. It covers the main actions, parameter semantics, and key behavioral notes (loopback compression, reset behavior). It lacks explicit mention of output structure, but the output schema supplies that. Could add note about required permissions or device connectivity, but not critical.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant meaning by grouping parameters by action and explaining their roles in context (e.g., 'adc_input' with values 'diff', 'line1', 'line2'; 'mic_src' with 0 or 1; 'per-codec fields need `codec`'). This clarifies the relationship between parameters and the tool's operation, exceeding what the schema alone provides.

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 clearly states the tool's purpose: 'Runtime audio routing control on a connected CrossPad'. It specifies the verb 'control' and the resource 'audio routing', and distinguishes from sibling tools (none others handle audio routing). It provides concrete actions ('query' to read state, 'set' to apply changes), making the purpose 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?

The description gives clear usage guidance: it explains the two actions ('query' and 'set'), describes what each parameter does in context, notes the prerequisite (Linux with `amidi`), and provides behavioral notes (PCB loopback behavior, firmware reset). However, it does not explicitly state when to use this tool vs. alternatives, but since no sibling tool provides similar functionality, this is not a significant gap.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CrossPad/crosspad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server