Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

Run a hardware-in-the-loop scenario

crosspad_hil_run
Destructive

List and run hardware-in-the-loop test scenarios on a real CrossPad board; start a scenario as a task and retrieve its console log and report links.

Instructions

[ESP HW] Run a hardware-in-the-loop (HIL) test scenario on a real CrossPad board; these are the firmware test suite (there are no firmware unit tests). action=list returns the daemon's catalog with each scenario's parameters (smoke, stability, rt_glitch, app_churn, kit_churn, usb_mode_cycle, midi_stress, audio_loopback, sampler_record, ble_midi and more); action=run starts one as a task and returns a handle to poll with crosspad_task, and the report comes back with its console log and report.json as links. A run that passes with no stimulus in the window proves nothing (kit_churn fails itself for that reason). Safety: a run with params.flash rewrites the firmware and asks for confirmation (annotations are static, so the tool is advertised at that worst case); action=list only reads; every scenario without params.flash runs as given, fw_switch and fw_update (which install and switch firmware) included.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "crosspad_hil_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNolist: the scenario catalog with each one's parameters; run: start one as a taskrun
deviceNoDevice id (dev_xxxx); implicit when one board is attached
paramsNoScenario parameters; action=list reports the names, types and defaults each one takes
scenarioNoScenario name, e.g. smoke, app_churn, kit_churn, stability, ble_midi. action=list gives the full catalog. Required for run
confirm_tokenNoEcho the token from a confirmation_required reply to proceed

Output Schema

NameRequiredDescriptionDefault
tsNo
docsNo
hintNo
nextNo
pollNo
taskNo
toolNo
errorNo
actionNo
deviceNo
noticeNo
outcomeNo
successYes
scenarioNo
scenariosNo
elicitationNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0

TDQS

A4.4/5.0
Behavior5/5

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

With destructiveHint=true and openWorldHint=true already set, the description goes further and explains exactly why: params.flash rewrites firmware, triggers a confirmation, and therefore the tool is advertised at its worst case, while action=list is read-only and non-flash scenarios run as given. It also discloses where results land (console log and report.json as links) and the confirm_token round trip.

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?

Despite its density, the text is front-loaded with purpose and every clause carries information — catalog, handle/polling, the no-stimulus caveat, and the safety reconciliation. Nothing is padding or restatement of the name.

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 5-parameter tool with a nested params object, an output schema, and contradictory-looking annotations, the description covers the discovery path, the async task model, the confirmation flow, and result locations. An agent has everything needed to call it correctly and safely.

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 adds real meaning on top by explaining that params names/types/defaults are discovered via action=list, that scenario is required for run, and that confirm_token must be echoed from a confirmation_required reply. It stops short of documenting device resolution beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource — running a hardware-in-the-loop scenario on a real CrossPad board — and clarifies its scope with "these are the firmware test suite (there are no firmware unit tests)." It also splits the two actions (list = catalog, run = start a task), though it never explicitly contrasts itself with similar siblings such as crosspad_test_run or crosspad_run.

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?

It gives concrete workflow guidance: call action=list to discover scenario names and parameters, then action=run, then poll the returned handle with crosspad_task. It also carries a real usage caveat — a run that passes with no stimulus in the window proves nothing — but it never states when to prefer a different tool.

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