Skip to main content
Glama
bitpirate-mcp
by Indigaz

spi_flash_erase

Destructive

Erases the entire SPI flash chip after explicit confirmation, permanently destroying all stored contents; use for a full chip wipe, expecting slow execution.

Instructions

Erase the ENTIRE flash chip (firmware menu 9). DANGEROUS: all contents destroyed. [approval-write] [Duration: slow - very-slow (seconds to minutes depending on chip).]

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": {
      "_confirmed": "<_confirmed>"
    },
    "name": "spi_flash_erase"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoTimeout seconds
_confirmedYesSet true to confirm execution

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the description's main added value is the duration disclosure ('seconds to minutes depending on chip') and the '[approval-write]' marker indicating an approval gate. It could go further by stating irreversibility or that the chip contents become unreadable until reflashed, but it substantially enriches the annotation picture.

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?

One tight sentence with the action and scope front-loaded, followed by the danger warning, approval marker, and duration estimate. No filler; each clause conveys operational information.

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 destructive tool with annotations covering the safety profile and no output schema, the definition supplies what an agent needs: full-chip scope, destructiveness, duration, and an approval requirement. Minor gaps are the post-erase state and confirmation semantics, both partly handled by the schema.

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%, with both 'timeout' and '_confirmed' documented inline, so the schema carries the parameter burden. The description adds only an indirect hint that timeouts should be generous via the duration note, nothing more.

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?

Names a specific verb ('Erase') and resource ('ENTIRE flash chip'), and stresses the whole-chip scope, which cleanly separates it from read-oriented siblings like read_flash and spi_flash_analyze. The 'firmware menu 9' note pins down the exact operation.

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 emphasis on 'ENTIRE' plus the danger warning implies this is only for full-chip wipes, but no alternative is named and no explicit when-not guidance is given (e.g., what to use for partial/region erasure or verification afterward). Usage is implied rather than stated.

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