Skip to main content
Glama
CrossPad

crosspad-mcp-server

by CrossPad

crosspad_flash

Destructive

Flash firmware to a connected CrossPad device. Choose ESP32-S3 (via UART in bootloader mode or USB-CDC OTA) or STM32G0 (via ST-Link SWD or USB DFU) to install firmware built from source.

Instructions

[ESP HW | STM HW] Flash firmware to a connected CrossPad device. target='esp' (default) → ESP32-S3 firmware (requires prior crosspad_build platform=idf): • transport='uart' uses idf.py flash (device must be in bootloader mode). • transport='ota' uses platform-idf/tools/ota_flash.py over USB CDC (no bootloader mode required). Works on both CrossPad generations: rev <2.0 (ESP native USB) and rev 2.0 (port is the STM32 CDC bridge — STM emulates the esptool DTR/RTS auto-reset and forwards the flash to the ESP over LPUART2; rev-2.0 STM must be in passthrough mode, i.e. NOT booted with pad-4 held). target='stm' → STM32G0 firmware via STM32_Programmer_CLI (requires prior crosspad_build platform=stm): • method='swd' flashes over ST-Link (SWD). • method='dfu' flashes the USB DFU bootloader (board in ST system memory — hold pad 1 at boot or trigger boot_request_dfu). Flasher resolved from config (stm_programmer_cli) → $STM32_PROG → PATH.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoSerial port path (e.g. /dev/ttyACM0, COM3). Auto-detected if omitted; required when multiple devices connected.
methodNoSTM only. 'swd' = ST-Link/SWD; 'dfu' = USB DFU system bootloader.
targetNo'esp' = ESP32-S3 (transport uart/ota); 'stm' = STM32G0 firmware via STM32_Programmer_CLI (method swd/dfu).esp
transportNoESP only. 'uart' = bootloader-mode flash via idf.py; 'ota' = USB-CDC OTA flash via ota_flash.py.
build_typeNoSTM only. Selects the build/<preset> dir for the default firmware binary. Defaults to Debug.
firmware_pathNoCustom firmware binary path. ESP: OTA only, defaults to <idf-root>/build/CrossPad.bin. STM: defaults to <stm-root>/build/<preset>/CrossPad_STM32_r20.bin.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
errorNo
methodYes
successYes
programmerNo
output_tailYes
firmware_pathNo
duration_secondsYes
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false (mutating). The description adds substantial behavioral context: hardware prerequisites (bootloader mode, passthrough mode, boot-pin states), the need for prior build steps, boot_request_dfu trigger for DFU, and the flasher resolution chain. It explains the rev-2.0 STM CDC-bridge passthrough mechanism. Doesn't explicitly warn about data loss from flashing, but the destructiveHint annotation covers the safety profile and the description adds hardware context beyond annotations.

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?

Well-structured with clear bullet lists per target. Each section is tersely written. Slightly dense—the rev-2.0 ESAB bridge explanation is a long parenthesis—but each clause earns its place and the format aids scanning. Could trim a couple of embedded caveats but overall efficient.

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?

Six parameters with 100% schema coverage, full enum constraints, and an output schema present. For a high-complexity flashing tool spanning two hardware targets with multiple transports and methods, the description covers prerequisites, defaults, hardware behavior across generations, and flasher resolution—effectively complete for the complexity level.

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 description coverage is 100%, so baseline is 3. The description adds meaningful context beyond the schema: firmware_path defaults per-target (ESP OTA-only vs STM per-preset), target/transport/method interplay (transport is ESP-only, method is STM-only), and build_type defaulting to Debug. This clarifies cross-parameter constraints that the flat schema doesn't encode.

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+resource: 'Flash firmware to a connected CrossPad device' with explicit targets ('esp' vs 'stm'), transports ('uart' vs 'ota'), and methods ('swd' vs 'dfu'). It clearly distinguishes from siblings like crosspad_build (which builds firmware rather than flashing it) and crosspad_run (which runs on-device).

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?

Provides explicit when-to-use guidance: requires prior crosspad_build platform=idf for ESP, crosspad_build platform=stm for STM. It names specific prerequisites (bootloader mode for uart, passthrough mode for rev-2.0, ST system memory for dfu) and documents the STM32_Programmer_CLI resolver chain. No alternatives are named but preconditions are unusually thorough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CrossPad/crosspad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server