Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_test_run

Idempotent

Build and run the CrossPad PC Catch2 test suite, parse passed/failed counts and errors, and support filtering, test listing, or GUI harness runs through CTest labels.

Instructions

[PC] Build and run the Catch2 test suite of crosspad-pc: configures cmake with BUILD_TESTING=ON, parses the output into passed/failed counts and errors, supports filter and list_only. Pass labels to run the GUI harness instead; those cases live in a second executable that only CTest knows how to launch.

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

Input Schema

NameRequiredDescriptionDefault
filterNoCatch2 test filter (e.g. '[core]', 'PadManager*'). Default '' (empty) runs ALL tests — there is no opt-out for 'no tests'. With `labels` it becomes a regex over CTest entry names instead.
labelsNoCTest labels to run instead of the Catch2 binary. 'gui' = the simulator harness ([gui] cases), which excludes the flaky entries unless 'flaky' is listed too. Default [] = the crosspad_tests binary, as before.
list_onlyNoIf true, list discovered tests matching `filter` without running them. Default false.

Output Schema

NameRequiredDescriptionDefault
docsNo
nextNo
errorNo
errorsYes
failedYes
labelsNo
noticeNo
passedYes
runnerNo
successYes
test_outputYes
tests_foundYes
build_outputYes
duration_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0
  2. Removedv10.2.0
  3. First observedv9.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), it discloses the key side effect that cmake is configured with BUILD_TESTING=ON, and that output is parsed into passed/failed counts and errors. It also notes the GUI cases live in a separate executable only CTest can launch, which is meaningful behavioral context an agent could not infer.

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?

Two sentences, front-loaded with the core verb and target, and each clause adds distinct information (build config, output parsing, parameter roles, GUI-mode caveat). No filler or restated title.

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?

With an output schema present, the description need not explain return values, and it adequately covers the default mode, the labels mode, and the cmake side effect. It could have explicitly stated when not to use this in favor of the HIL/board siblings, but nothing essential for correct invocation is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description restates the filter/labels relationship ('Pass `labels` to run the GUI harness instead') but the crucial detail that `filter` becomes a regex over CTest entry names is already carried by the schema, so little new meaning is added.

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 states a specific verb ('Build and run') plus resource ('the Catch2 test suite of crosspad-pc'), and the '[PC]' prefix marks the platform scope, which is what separates it from the HIL-oriented sibling crosspad_hil_run. An agent can identify the operation and its target 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?

It clearly explains the two modes: default Catch2 binary driven by `filter`/`list_only`, versus passing `labels` to run the GUI harness through CTest. What is missing is explicit routing advice against siblings such as crosspad_hil_run or crosspad_check, though the '[PC]' tag implies the distinction.

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