Skip to main content
Glama
bitpirate-mcp
by Indigaz

spi_dump

Dump full SPI flash contents to a file for firmware extraction. Read-only firmware raw mode transfer; expect minutes for multi-MiB chips due to serial baud limits.

Instructions

Dump the entire SPI flash to a file (firmware raw mode, menu 8). Serial-bottlenecked (~91 s per MiB at 115200 baud). [read-only] [Duration: slow - very-slow (4 MiB flash ~ 7 min). Background-dispatch required.] Returns {path, size}.

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": {
      "output_path": "<output_path>"
    },
    "name": "spi_dump"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoTimeout seconds (auto from capacity if omitted)
output_pathYesDestination file path (e.g. /home/christian/re-lab/<target>/flash.bin)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares read-only semantics, quantifies the serial bottleneck (~91 s per MiB at 115200 baud), warns of very-slow duration, mandates background dispatch, and discloses the return shape {path, size}. It omits whether the SPI session must be opened first and what happens on timeout or failure.

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?

Front-loaded with the core action, then bracketed operational facts and the return shape — efficient and skimmable with no filler. Minor deduction because the bare "menu 8" and "firmware raw mode" references are opaque without outside context.

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, no-output-schema tool, it covers the important agent-facing facts: cost, duration, dispatch mode, and return shape. The main gap is the unstated dependency on an active SPI connection and the meaning of the mode flag.

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%, including the note that timeout auto-derives from capacity, so the schema already does the work. The description adds no meaning beyond it other than implying output_path receives the raw dump. Baseline 3 applies.

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 and resource: "Dump the entire SPI flash to a file." The word "entire" implicitly separates it from the partial-read sibling spi_read, and the parenthetical pins it to a specific firmware mode (menu 8). No sibling is named outright, so it stops short of 5.

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?

Usage is implied rather than stated: full-flash extraction as opposed to a targeted read. It adds valuable operational guidance (background-dispatch required, ~7 min for 4 MiB), but never says when to prefer spi_read or what prerequisites must be satisfied before calling it.

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