Skip to main content
Glama
bitpirate-mcp
by Indigaz

spi_read

Read a specified SPI flash memory region and return it as a hexdump for firmware inspection, dumping, or verifying stored data. Specify start address, byte length, and optional timeout.

Instructions

Read a region of SPI flash memory as a hexdump (firmware menu 5). [read-only] [Duration: fast - slow (serial-bottlenecked ~11.5 KB/s -- ~8 s per 100 KiB).]

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": {
      "address": "<address>",
      "length": "<length>"
    },
    "name": "spi_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthYesNumber of bytes to read (max 65536)
addressYesFlash address to start reading from
timeoutNoTimeout seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description does the annotation's job by declaring "[read-only]" and by quantifying the serial bottleneck (~11.5 KB/s, ~8 s per 100 KiB), which materially informs how large a length to request. It omits prerequisites (the SPI port presumably must be opened/configured first) and any error behavior, which keeps it short of a 5.

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?

One front-loaded sentence with the operation first, followed by compact bracketed metadata for safety and cost. The nested parentheses around the throughput figure are slightly awkward but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read tool the description covers output form and cost, which is most of what an agent needs, and there is no output schema requiring explanation. However, it never states the device/port must be opened and configured first, nor how failures (bad address, timeout) surface, leaving real gaps for a hardware-facing tool.

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 address, length, and timeout are already documented, and the 65536 cap is stated in the schema. The description adds indirect meaning to length via the throughput/time figure, but says nothing about address validity, alignment, or what timeout governs.

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 ("Read a region of SPI flash memory") and names the output form (hexdump), which is more than a restatement of the name. It does not distinguish itself from plausible siblings such as read_flash or spi_dump, so an agent cannot tell from the text alone which of those to pick.

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 parenthetical "(firmware menu 5)" anchors it to a known UI action, implying when a human would use it, but there is no explicit when-to-use/when-not-to-use statement and no named alternative among read_flash, spi_dump, or spi_transfer. 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.