Skip to main content
Glama

Picotool Load UF2

picotool_load
Destructive

Load a UF2 file onto a Pico in BOOTSEL mode via picotool, with confirmation required before flashing.

Instructions

Load a UF2 to a Pico in BOOTSEL mode via picotool load -x -t uf2.

Prefer pio_flash for flashing firmware built from this repo. Requires confirm=True, or the user's answer when the client can ask.

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": {
      "uf2_path": "<uf2_path>"
    },
    "name": "picotool_load"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo`True` once the user agreed; omitted, a client that can ask prompts the human.
uf2_pathYesThe .uf2 file to load.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the mutation risk is on record. The description's real contribution is the authorization flow ('Requires confirm=True, or the user's answer when the client can ask') and the BOOTSEL precondition, which are not captured in annotations. It stops short of saying what happens to existing flash contents or whether the device reboots, so it adds context without full behavioral disclosure.

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?

Three short sentences, front-loaded with the action and mechanism, then the alternative, then the gate. No filler; the only slight weakness is that the confirm sentence is a little compressed.

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?

An output schema exists, so return values need no explanation. The description covers the action, the mechanism, the prerequisite device state, the sibling alternative, and the human-approval gate, which is everything an agent needs to invoke a destructive flash tool safely.

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 both parameters are already documented at the field level. The description reinforces that confirm=True is effectively mandatory despite the schema default of false, which is useful but marginal; it adds no path/format guidance for uf2_path beyond the schema.

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 (load), resource (a UF2), target (a Pico in BOOTSEL mode), and even the underlying invocation (`picotool load -x -t uf2`). The `-x` and BOOTSEL detail plus the Pico reference let an agent separate this from the nrf52 flashing siblings at a glance.

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?

For a tool that overlaps with pio_flash, it explicitly names the alternative and the condition that selects it ('firmware built from this repo'). It also states the hardware precondition (BOOTSEL mode) and the confirm/approval requirement, so the agent knows both when to choose this and what must be true first.

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