Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_run

Launch the built PC simulator in the background and return its pid, path and port. Call the build tool first; start a second instance only on its own port.

Instructions

[PC] Launch the built PC simulator (crosspad-pc) in the background. Returns pid, exe_path and port. Refuses to start a duplicate when one already answers on the control port; a second instance needs its own port (the simulator exits with code 3 when it cannot bind, and the reply carries its log tail). Fails if the binary is not built: call crosspad_build first. The simulator manipulates the desktop's audio sinks on start, so do not launch one beside a user's session without need.

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

Input Schema

NameRequiredDescriptionDefault
portNoSimulator control port (default: CROSSPAD_REMOTE_PORT of this server, else 19840). Needed to address a second instance.
forceNoSpawn even if something already answers on the port. Only useful together with a different `port`. Default: false.
no_midiNoOpen no MIDI port (CROSSPAD_NO_MIDI=1). A scripted run should, or it can play a real CrossPad on USB.
platformNoPlatform — currently only 'pc' is supported here.pc

Output Schema

NameRequiredDescriptionDefault
pidNo
docsNo
nextNo
portNo
errorNo
noticeNo
successYes
exe_pathYes
log_pathNo
log_tailNo
responsiveNo
already_runningNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: background spawn semantics, duplicate refusal, exit code 3 on bind failure with the log tail returned in the reply, and the side effect of manipulating desktop audio sinks. These are exactly the operational details an agent needs before invoking a non-read-only launch.

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?

Front-loaded with the action and return values, then prerequisites and cautions, with no filler. The sentences are long and dense but every clause carries operational information.

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?

Covers prerequisites, duplicate handling, failure mode and exit code, and the audio-sink side effect; return values need not be spelled out at length given the output schema. Nothing material is missing for correctly launching this tool.

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 real meaning: `port` exists to address a second instance and `force` is only meaningful with a different port. It does not mention `no_midi` semantics, though the schema already documents them thoroughly.

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?

States a specific verb and resource: 'Launch the built PC simulator (crosspad-pc) in the background', and reports what comes back (pid, exe_path, port). It positions itself against crosspad_build as a prerequisite but does not explicitly distinguish itself from other run-style siblings such as crosspad_hil_run or crosspad_test_run.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit preconditions ('Fails if the binary is not built: call crosspad_build first'), explicit exclusions ('Refuses to start a duplicate when one already answers on the control port'), the workaround for a second instance (its own `port`), and a caution about running beside a live user session.

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