Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_log

Read-only

Captures simulator or ESP32-S3 serial logs and returns the lines, letting you read device output with optional filtering, timeouts, and boot-reset for debugging firmware.

Instructions

[PC | ESP HW] Capture a log from the PC simulator (target='pc') or from a connected ESP32-S3's serial output (target='idf'), and return the captured lines. target='pc' spawns the built simulator, captures its stdout/stderr and kills it (uses timeout_seconds, max_lines; port and filter must be omitted); target='idf' reads the serial output of a connected ESP32-S3 via pyserial, no TTY needed (uses port, auto-detected when omitted, timeout_seconds, max_lines, filter as a case-insensitive substring, reset_to_boot). Defaults are on the parameters.

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": {
      "target": "<target>"
    },
    "name": "crosspad_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoidf only. Serial port path. Auto-detected if omitted; required when multiple devices connected. MUST be omitted for target=pc.
filterNoidf only. Case-insensitive substring filter — only matching lines returned. MUST be omitted for target=pc.
targetYes'pc' = run+capture sim binary (uses timeout_seconds?,max_lines? — port/filter MUST be omitted); 'idf' = read serial from connected ESP device (uses port?,timeout_seconds?,max_lines?,filter?,reset_to_boot?).
max_linesNoMax output lines. Defaults: 200 (pc), 500 (idf).
reset_to_bootNoidf only. Pulse the device reset (esptool DTR/RTS sequence, works through the STM bridge) before capturing, so the log starts at boot t=0. Use for boot-time profiling. Default false (passive read of the running device).
timeout_secondsNoCapture duration in seconds. Defaults: 5 (pc), 10 (idf).

Output Schema

NameRequiredDescriptionDefault
docsNo
nextNo
portNo
errorNo
linesNo
noticeNo
stderrNo
stdoutNo
successYes
exe_pathNo
exit_codeNo
truncatedNo
line_countNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4/5.0
Behavior4/5

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

Beyond readOnlyHint=true, the description discloses real behavioral traits: the 'pc' path spawns and then kills a simulator process, the 'idf' path needs no TTY, the port is auto-detected, and filter is a case-insensitive substring match. It does not spell out in the description that reset_to_boot pulses the device reset and changes device state (only the schema does), which is the one behavior worth surfacing at this level.

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?

Mode-specific behavior is front-loaded and the two target branches are cleanly separated. The closing 'Defaults are on the parameters' and the repeated per-mode parameter lists duplicate what the schema already says, costing a little density.

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?

With an output schema present, return values need no explanation, and the description covers both execution paths, their prerequisites, auto-detection behavior, and the purpose of the reset option. An agent has everything needed to pick a target and call correctly.

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 coverage is 100%, so every parameter is already documented, including per-target defaults and the 'MUST be omitted for target=pc' constraints. The description restates the same per-target parameter mapping rather than adding new meaning, so the baseline 3 applies.

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 states a specific verb and resource ('Capture a log ... and return the captured lines') and splits the tool into two clearly named modes, target='pc' and target='idf'. It never names a sibling (e.g., crosspad_console or crosspad_cdc), so an agent must still infer how this differs from other log/console tools.

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 context for each mode — 'pc' spawns the built simulator and kills it, 'idf' reads serial via pyserial with no TTY needed — and explicitly says when to use reset_to_boot ('Use for boot-time profiling'). It stops short of stating when not to use this tool versus the neighboring console/capture tools.

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