Skip to main content
Glama
bitpirate-mcp
by Indigaz

spi_flash_analyze

Scans an entire SPI flash on-device for file signatures, sensitive patterns such as keys, hashes and URLs, and entropy summary to find firmware artifacts and secrets.

Instructions

Run the on-device BinaryAnalyzer over the whole flash: file signatures, sensitive patterns (keys, hashes, URLs), entropy summary. [read-only] [Duration: slow - very-slow (full-chip read ~91 s/MiB + analysis). Background-dispatch recommended.]

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": "spi_flash_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoTimeout seconds

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?

With no annotations supplied, the description still discloses key behavioral traits: it is read-only, it is slow to very-slow, it provides a concrete timing estimate (~91 s/MiB plus analysis), and it recommends background dispatch. It does not cover prerequisites such as whether SPI must already be open, but the essential safety and cost profile is present.

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?

The definition is compact and front-loaded: purpose first, then analysis outputs, then bracketed behavioral tags for read-only and duration. Every part contributes useful information with no wasted prose.

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 single-parameter tool with no output schema, the description is largely complete: it identifies what is analyzed and what kinds of results to expect. Minor gaps remain around timeout behavior and SPI session prerequisites, but no critical invocation information 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?

There is a single timeout parameter with 100% schema description coverage, so the schema already explains it. The description adds no meaning about timeout behavior or defaults, which is acceptable at the baseline but not enriching.

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?

The description uses a specific verb and resource: 'Run the on-device BinaryAnalyzer over the whole flash,' and it enumerates the analysis outputs (signatures, sensitive patterns, entropy). It is clear, but it does not explicitly distinguish this whole-flash analysis from siblings like spi_flash_search or spi_flash_strings.

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 by 'over the whole flash' and the recommendation to use background dispatch for a slow operation. However, it does not explicitly say when to choose this tool versus the narrower search or strings siblings, nor when not to use it.

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