Skip to main content
Glama
pico-bay

pico-bay

Official

Install the ctrlPi API on a board

pico_ctrlpi_install
Destructive

Installs or updates the ctrlPi API agent on MicroPython Pico W, Pico 2 W, and ESP32 boards, writes the required files, applies Wi-Fi and API settings, and resets the board.

Instructions

Install or update the ctrlPi API agent on a Pico W, Pico 2 W or an ESP32 running MicroPython (pico-gpio-api or esp32-gpio-api, downloaded from GitHub; the ESP32 agent officially supports the ESP32, ESP32-S3, ESP32-C3 and ESP32-C6; other ESP32 chips are allowed but not officially supported). Writes app.mpy, upgrader.mpy and main.py (plus boot.py on an ESP32), then config.json (the board's own kept, with this api_key and name), wifi.txt and scripts/cpu-temp.py when missing, and resets the board. It replaces main.py, so ask the user first and pass confirmed: true.

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": {
      "board_id": "<board_id>",
      "wifi_ssid": "<wifi_ssid>",
      "confirmed": "<confirmed>"
    },
    "name": "pico_ctrlpi_install"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAgent name. Left out: the board's own name, else the agent's pico-<serial4> or esp32-<serial4> default; an empty string resets it to that default.
api_keyNoAgent API key. Left out: the board's own key, else your-secret-key (public, so change it).
board_idYesStable board UID returned by pico_boards_list, or its current serial device path.
confirmedYesMust be true after the user explicitly confirms the install.
wifi_ssidYesWi-Fi network the agent joins.
wifi_passwordNoWi-Fi password (empty for an open network).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds substantive detail: exactly which files are written (app.mpy, upgrader.mpy, main.py, boot.py on ESP32), that secondary files are created only when missing, that config.json keeps the board's own api_key/name, and that the board is reset at the end. That is well beyond what the annotations convey.

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 destructive-write disclosure and the confirmation requirement are front-loaded, and every clause carries information. It is a single dense sentence with nested parentheticals about chip support, which is slightly harder to parse than separate sentences would be.

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 destructive, six-parameter mutation with no output schema, the description covers targets, artifacts written, reset behavior, and the confirmation gate. Gaps are minor: it does not say what is reported back on success/failure or whether the board must be in a particular boot state.

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 every parameter including name, api_key, board_id, confirmed and wifi_password is already documented. The description reinforces the confirmed workflow and the 'board's own value' persistence for api_key/name, but adds no format, syntax, or constraint information the schema lacks. Baseline 3 is appropriate.

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 names a specific verb pair (install/update) and the exact resource (the ctrlPi API agent: pico-gpio-api or esp32-gpio-api from GitHub) on named target boards (Pico W, Pico 2 W, ESP32 variants). It enumerates the files written, which lets an agent distinguish this from a generic pico_install-style operation without opening 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 Guidelines4/5

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

It gives an explicit precondition: the call replaces main.py, so the user must be asked first and confirmed: true passed. It also implicitly frames this as install-or-update. It stops short of naming when to prefer a sibling tool or what state the board must be in beforehand.

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