Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_console

Idempotent

Read and monitor the CrossPad STM32 bridge console through the crosspad-hil daemon to capture boot logs, panics, and PerfMon output, wait for expected patterns, and snapshot device diagnostics.

Instructions

[ESP HW] Read the STM32-bridge console of a CrossPad (boot log, panics, PerfMon) through the crosspad-hil daemon. open returns a con_N handle (DTR/RTS stay deasserted so opening never reboots the board; reset=true pulses reset on purpose); read {since_seq, wait_ms, match, limit} returns {lines: [[seq, line]], next_seq, lines_lost}; expect {patterns, reject, timeout_ms} returns which pattern hit first (or which reject) with 20 lines of context; reset; snapshot (parsed fatals, reboots, markers, heap, cdc_drops); close. Handles expire after 30 min idle. The full log is persisted to hil_logs/ and linked as crosspad://device/{id}/console/log, never inlined.

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

Input Schema

NameRequiredDescriptionDefault
limitNoread: max lines inline (default 200, hard cap 2000); the full log is the resource_link
matchNoread: regex; only matching lines are returned
resetNoopen: pulse reset (DTR/RTS, works through the STM bridge) right after opening so the log starts at boot
actionYesopen → con_N handle; read/expect/reset/snapshot/close act on that handle
deviceNoDevice id (dev_xxxx) or a port path; omit when exactly one CrossPad is connected
handleNoConsole handle from action=open (con_<n>)
log_toNoopen: explicit log file path; default hil_logs/console_<device>_<ts>.log
rejectNoexpect: regexes that end the wait as a failure (e.g. 'Guru Meditation')
wait_msNoread: block up to this long for new lines
patternsNoexpect: regexes; the first to appear wins
since_seqNoread: return lines with seq >= this (from a previous next_seq)
timeout_msNoexpect: default 30000

Output Schema

NameRequiredDescriptionDefault
tsNo
hitNo
seqNo
docsNo
hintNo
nextNo
portNo
toolNo
errorNo
linesNo
actionNo
deviceNo
fatalsNo
handleNo
noticeNo
contextNo
detailsNo
log_uriNo
outcomeNo
rebootsNo
successYes
log_pathNo
next_seqNo
rejectedNo
snapshotNo
cdc_dropsNo
elapsed_sNo
truncatedNo
lines_lostNo
elicitationNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: DTR/RTS stay deasserted so opening never reboots the board, handles expire after 30 minutes idle, and the full log is persisted to hil_logs/ and exposed as a crosspad:// resource link rather than inlined. This tells the agent about lifecycle limits, side-effect controls, and output truncation behavior that the structured fields do not.

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 hardware/daemon scope, then a compact action-by-action walkthrough; nearly every clause carries operational information. It is dense and long-ish, but tightening would risk losing the persistence and handle-expiry facts.

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 six-action, 12-parameter tool this covers the volatile pieces: handle expiry, log persistence, line caps, and reboot control. It also redundantly restates return envelopes despite an output schema existing, but nothing an agent needs to invoke it correctly appears to be missing.

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%, but the description still adds cross-parameter meaning the schema cannot: it groups parameters by action (read {since_seq, wait_ms, match, limit}; expect {patterns, reject, timeout_ms}) and describes what each returns, including the 20 lines of context on an expect hit.

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: read the STM32-bridge console of a CrossPad (boot log, panics, PerfMon) through the crosspad-hil daemon. The action enumeration (open/read/expect/reset/snapshot/close) makes the tool's scope unambiguous and distinguishable from the analyze/diagnose siblings.

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

Usage Guidelines3/5

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

Usage is implied through the action list and content types (boot log, panics, PerfMon), and the description explains that reset=true pulses reset on purpose while a plain open never reboots. However, it never states when to prefer this over crosspad_diagnose_crash, crosspad_hil_run, or crosspad_cdc, so the agent must infer the choice.

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