Skip to main content
Glama

read_flash

Dump SPI flash content to a file by specifying offset and length; stops running gateware and reboots the FPGA from flash afterward.

Instructions

Dump SPI flash content to a file. Stops the running gateware; the FPGA is rebooted from flash afterwards.

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

Input Schema

NameRequiredDescriptionDefault
lengthNoBytes to read (default: up to 4 MiB minus offset).
offsetNoStart offset, multiple of 256.
output_pathYesWhere to save the dump on this machine.

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

The annotations already state that this is not read-only, and the description adds meaningful behavioral detail: it stops the running gateware and the FPGA reboots from flash afterward. It does not clarify whether the flash contents themselves are modified or what state the device must be in beforehand.

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?

Two tight sentences with no wasted wording, front-loaded with the primary action and followed by the critical side effect. The structure makes the tool's purpose and hardware impact immediately clear.

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?

Given the full parameter schema coverage, existing output schema, and annotations, the description covers the essential purpose and the most important side effect. It is nearly complete, though it could briefly clarify whether the read itself leaves flash contents unchanged.

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?

The input schema has 100% description coverage for all three parameters, including length, offset, and output_path. The description adds no parameter-specific semantics beyond the schema, so the baseline of 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?

The description gives a specific verb and resource: dump SPI flash content to a file. It is clear what the tool does and naturally distinct from erase or write operations, but it does not explicitly name sibling alternatives such as flash_info.

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?

Use is implied by "Dump SPI flash content to a file," but there is no explicit when-to-use or when-not-to-use guidance against reading flash info versus dumping contents. The side-effect warning about stopping gateware is helpful context but is not framed as a usage condition.

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