Skip to main content
Glama
bitpirate-mcp
by Indigaz

enter_download_mode

Set an ESP32/ESP8266 target into UART download mode by holding boot pin LOW and pulsing reset, enabling firmware flashing or probing.

Instructions

Put target into UART download mode by toggling GPIO pins. Holds boot pin LOW, pulses reset pin, releases. Works for ESP32, ESP8266, and similar chips. [allowed-write] [Duration: fast (~1-2 s -- GPIO toggle sequence).]

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": {
      "boot_pin": "<boot_pin>",
      "reset_pin": "<reset_pin>"
    },
    "name": "enter_download_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
boot_pinYesESP32 GPIO connected to target boot select (e.g., target GPIO0)
reset_pinYesESP32 GPIO connected to target EN/RST

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the exact electrical sequence (boot LOW, pulse reset, release), which is genuinely useful behavioral detail. It omits consequences the agent needs: that the target is reset and any running firmware halts, whether an existing UART session must be closed or reopened afterward, and what happens on wiring/pin failure.

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?

Four short sentences, front-loaded with the action and followed by mechanism, compatibility, and cost tags; nothing is padded. Minor deduction for the bracketed '[allowed-write]' and '[Duration]' tags, which read as machine metadata and slightly clutter the prose.

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 two-parameter, no-output-schema hardware action, the definition covers purpose, mechanism, chip compatibility, and duration. The remaining gap is post-conditions — the reset side effect and required follow-up state — which an agent would reasonably want before invoking it.

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 goes beyond it by mapping behavior to each parameter — the boot pin is held LOW while the reset pin is pulsed. That tells the agent which GPIO role each argument plays during the operation, information the schema descriptions alone do not convey.

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 outcome ('Put target into UART download mode') plus the mechanism ('toggling GPIO pins'), which unambiguously separates it from the port-oriented siblings like open_uart or send_command. An agent can tell exactly what physical result this produces without reading the schema.

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 gives chip compatibility ('Works for ESP32, ESP8266, and similar chips') but never states the triggering condition — e.g. use before send_command/read_flash when the chip is not already in bootloader mode — nor any exclusion such as chips already in download mode. Usage must be inferred from the mechanism.

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