Skip to main content
Glama

Touch 1200Bps

touch_1200bps
Destructive

Open and close the board's serial port at 1200 baud to reboot nRF52840, native-USB ESP32-S3, RP2040, or similar devices into their USB bootloader, then report the bootloader port.

Instructions

Open port at 1200 baud and close it, rebooting an nRF52840, native-USB ESP32-S3, RP2040 or similar into its USB bootloader; on an nRF52 it also drops DTR, which its Adafruit core needs.

Then reports the bootloader's port: a new one, or the same node under a new PID (Linux keeps the /dev/ttyACM node and renames the /dev/serial/by-id link). Erases nothing; it is annotated destructive because it reboots the device.

Returns {ok, former_port, new_port, new_port_vid_pid, ...}.

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": {
      "port": "<port>"
    },
    "name": "touch_1200bps"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYesThe board's serial port.
settle_msNoMilliseconds to hold the port open at 1200 baud before closing it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

It goes meaningfully beyond the annotations by explaining why destructiveHint is true ('it reboots the device'), clarifying that it erases nothing, disclosing the DTR drop needed on Adafruit nRF52 cores, and describing how the new port appears (same /dev/ttyACM node, renamed /dev/serial/by-id link). The only real omission is any note on timing/failure behavior if the device does not reappear.

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?

The action and its effect are front-loaded, and each sentence carries substantive information. The paragraph is dense and line-broken mid-thought, and the trailing return-value listing is largely redundant given the output schema, which slightly weakens structure.

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 hardware-touching mutation tool with full annotation coverage and an output schema, the description covers the important non-obvious realities: hardware compatibility, DTR behavior, port renaming, and the fact that nothing is erased. Missing only failure/timeout expectations, which an agent would benefit from knowing.

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 both `port` and `settle_ms` are already documented in the schema. The description adds no syntax, format, or tuning guidance for either parameter (settle_ms is never mentioned), so the baseline 3 applies.

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 precise verb and resource ('Open `port` at 1200 baud and close it, rebooting an nRF52840 ... into its USB bootloader') and names the concrete hardware families it targets. It is clearly distinguishable from siblings such as nrf52_enter_uf2 or esptool_erase_flash, since it describes the 1200-baud touch technique specifically.

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?

The description makes the use case (reboot into USB bootloader) clear by implication, and notes the nRF52 DTR quirk that affects whether it works. However, it never states when to prefer this over sibling bootloader-entry tools like nrf52_enter_uf2 or nrf52_bootloader_info, nor when not to use it.

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