Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

Record the device through its own USB audio

crosspad_capture
Idempotent

Starts and stops background recording of a CrossPad's UAC2 audio, returning a WAV with peak/RMS, overrun and silence stats, then restores the default audio profile.

Instructions

[ESP HW] Record the audio a CrossPad plays, through its own UAC2 endpoint (one cable, no external interface). start returns a cap_N handle and records in the background so you can drive pads meanwhile; stop returns the WAV as a link with peak/rms dBFS, overruns and whether the take was silent. The audio profile parks the RT mixer and removes the CDC endpoint; this tool resumes the mixer and restores the default profile for you. silent: true means no signal: resume the mixer or check the preset, do not report it as a failed performance.

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

Input Schema

NameRequiredDescriptionDefault
outNostart: where to write the WAV (default under hil_logs/)
actionYesstart → cap_N handle; health while it runs; stop → the WAV and its stats
deviceNoDevice id (dev_xxxx); implicit when one board is attached
handleNocap_N handle from start; required by health and stop
presetNoWhich path to record. headphone/speaker are the DAC→ADC loop (what the device is playing); mics/line_in are external inputsheadphone
volumeNostart: codec volume for the take
secondsNostart: stop by itself after this long; omit to record until stop
keep_modeNostart: stay in the USB-audio profile after stop (CDC stays gone). Default restores the default profile
sample_rateNostart: capture rate (default 48000, the only rate the device offers)
resume_audio_tasksNostart: resume the RT mixer after the profile switch. Leave true — the audio profile parks it and the take comes out silent

Output Schema

NameRequiredDescriptionDefault
tsNo
wavNo
docsNo
nextNo
errorNo
actionNo
deviceNo
handleNo
noticeNo
presetNo
resultNo
silentNo
runningNo
secondsNo
successYes
overrunsNo
rms_dbfsNo
peak_dbfsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare the generic mutating-but-safe profile (readOnly false, destructive false, idempotent true), so the description carries real weight here and does: it discloses that the audio profile parks the RT mixer and removes the CDC endpoint, and that the tool restores the default profile on its own. That is exactly the side-effect context annotations cannot express; only the keep_mode escape hatch is left to the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: what it does, then the action semantics, then the side-effect and the restoration guarantee, then the failure-interpretation rule. Every sentence carries a distinct fact and nothing is repeated from the schema.

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?

For a 10-parameter, three-action hardware tool with an output schema, this covers the important unknowns: background recording, profile mutation and restore, and how to read a silent result. Only minor gaps remain, such as the distinction from crosspad_audio_route or what health reports beyond the schema text.

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, but the description adds genuine meaning on top by explaining why the profile-switch behavior exists and that the tool auto-restores the default profile - context that makes keep_mode and resume_audio_tasks interpretable rather than arbitrary. It also defines the silent-take outcome, which shapes how out and seconds are used in practice.

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 and resource - records the audio a CrossPad plays through its own UAC2 endpoint - and immediately qualifies the scope with 'one cable, no external interface', which separates it from routing or USB-mode siblings. It also names the handle lifecycle (start → cap_N, stop → WAV) so the agent knows the tool's full shape.

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 three actions are given operational context: start records in the background so pads can still be driven, health polls while it runs, stop yields the WAV. It also gives a concrete diagnostic rule for the silent case (resume the mixer or check the preset, don't report a failed performance). No explicit exclusion against sibling tools like crosspad_audio_route, which keeps it off a 5.

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