Skip to main content
Glama

Picotool Raw Pass-Through

picotool_raw
Destructive

Run picotool commands directly against a Raspberry Pi Pico or RP2040/RP2350 device to load, erase, save, or reboot firmware, returning exit code and captured output.

Instructions

Pass-through to picotool.

load/reboot/save/erase require confirm=True, or the user's answer when the client can ask; other subcommands run without asking.

Security: args is passed directly to the picotool binary. All arguments must come from a trusted source; do not allow untrusted content to flow into argument lists.

Returns {exit_code, stdout, stderr, stdout_tail, stderr_tail, duration_s}.

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": {
      "args": "<args>"
    },
    "name": "picotool_raw"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesThe picotool arguments, from a trusted source only.
confirmNo`True` once the user agreed; omitted, a client that can ask prompts the human. Only load/reboot/save/erase ask.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds real context beyond them: which subcommands are gated behind confirmation, that confirm is only prompted when the client can ask, and an explicit security warning that args flow straight into the binary. It also names the return fields, though since an output schema exists that is redundant rather than additive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short paragraphs, each front-loaded with its point: identity, confirmation behavior, security caveat, return shape. Every sentence carries distinct information and nothing is padded.

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 high-blast-radius raw pass-through, the definition covers the confirmation gate, the trust boundary for `args`, and the return shape, which is enough for correct invocation. A note on how errors surface (exit_code vs stderr) or on preferring dedicated tools would close the remaining gap.

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% and both parameters are documented in-schema, so the baseline is 3. The description's confirm sentence roughly mirrors the schema's own confirm description and adds no argument syntax, ordering, or format details for `args` beyond the security warning already stated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: it is a raw pass-through to the `picotool` binary, so an agent knows it accepts arbitrary subcommands rather than one fixed operation. It does not, however, differentiate itself from dedicated siblings such as picotool_info or picotool_load, so the agent must infer that this is the escape hatch.

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?

Provides concrete conditional guidance on confirmation: load/reboot/save/erase require confirm=True or a user answer, while other subcommands run without asking. It gives no guidance on when to prefer this raw tool over the dedicated picotool_* siblings or any exclusions, so usage is only implied.

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