Skip to main content
Glama
bitpirate-mcp
by Indigaz

spi_flash_search

Search SPI flash for a 1–32 byte string pattern and return matching addresses with printable context for firmware analysis, signature checks, or secret discovery.

Instructions

Search the flash for a string pattern (1-32 bytes). Returns match addresses with printable context. [read-only] [Duration: slow (full-chip read ~91 s/MiB). Background-dispatch recommended.]

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": {
      "pattern": "<pattern>"
    },
    "name": "spi_flash_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYesString to search for (1-32 bytes)
timeoutNoTimeout seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/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 disclose the key traits: read-only, slow (~91 s/MiB full-chip read), and a recommendation to dispatch in the background. It stops short of other relevant behavior such as whether all matches are returned or capped, and what happens when the timeout elapses.

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 front-loaded sentence states purpose and return value, followed by two bracketed tags for safety and performance. Nothing is redundant and the most decision-relevant facts come first.

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?

There is no output schema, so the description correctly describes the return value inline, and it flags the runtime cost that an agent needs before calling. Only the timeout semantics and match-volume limits are left unaddressed, which is a modest gap for a two-parameter read 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 description coverage is 100%, so both parameters are already documented, and the description only restates the 1-32 byte constraint. The timeout parameter and its interaction with a slow full-chip read are not discussed in the description, so no meaning is added beyond the schema.

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 names a specific verb and resource ('Search the flash for a string pattern') and adds the return shape ('match addresses with printable context'), so an agent knows exactly what the call produces. It does not distinguish itself from the sibling spi_flash_strings, leaving that routing decision to the agent.

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 the purpose: use it when you need to locate a known byte pattern in flash contents. There is no explicit when-not guidance or named alternative (e.g. a strings-extraction sibling), only an operational note to background-dispatch because of the runtime.

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