Skip to main content
Glama

erase_flash

Destructive

Erases the entire SPI flash, removing FPGA gateware and SoC firmware; requires confirm=true after user approval.

Instructions

PERSISTENT and DESTRUCTIVE: erase the whole SPI flash (gateware and SoC firmware). The FPGA will boot unconfigured until reflashed. Requires confirm=true after asking the user.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "erase_flash"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true; ask the user before setting it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the bar is lower, yet the description adds real value beyond them: the effect is persistent, both gateware and SoC firmware are lost, and the FPGA will boot unconfigured until reflashed. It stops short of stating whether the device must be idle or whether the operation is interruptible.

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 tight sentences with the severity warning front-loaded in capitals, followed by scope, consequence, and the confirmation gate — no wasted words.

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?

For a one-parameter destructive tool with an output schema present, the description covers severity, blast radius, resulting device state, and the confirmation protocol; nothing an agent needs to invoke it safely is missing.

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 the confirm parameter already carries its own description, so the schema does the heavy lifting; the description only repeats that confirm=true is required after asking the user, adding no new syntax or edge-case semantics.

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 resource ("erase the whole SPI flash") plus the two things destroyed (gateware and SoC firmware), which cleanly separates it from partial-write siblings like flash_gateware or flash_file.

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?

Gives a clear procedural prerequisite (ask the user, then set confirm=true) and implies the follow-up action ("until reflashed"), but never states when to choose erasure instead of reflashing a specific image with a sibling tool, or any when-not conditions.

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