Skip to main content
Glama
bitpirate-mcp
by Indigaz

spi_transfer

Executes BP6-style SPI instructions, including JEDEC ID reads, status checks, and chip erase sequences, on connected SPI targets.

Instructions

Run a BP6-style SPI instruction, e.g. '[0x9F r:3]' (JEDEC read), '[0x05 r:1]' (status), '[0x06] [0xC7]' (enable + chip erase). Dispatched to the firmware's instruction parser in SPI mode. [read-only for read-only instructions] [Duration: instant - fast.]

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": {
      "instruction": "<instruction>"
    },
    "name": "spi_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoTimeout seconds
instructionYesInstruction in [0x.. r:N d:ms] syntax

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the key trait that safety is instruction-dependent ('[read-only for read-only instructions]') and notes the speed profile ('instant - fast'), which is genuinely useful. But it buries that a supplied example ('[0x06] [0xC7]' enable + chip erase) is a destructive operation, and says nothing about permissions, irreversibility, or what a read returns.

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?

Compact and front-loaded: the operative verb plus the three canonical examples come first, followed by dispatch context and qualifiers. The bracketed trailing tags are terse and readable, though the safety caveat would carry more weight if it were not parenthetical.

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 no-output-schema, no-annotation, raw-instruction tool, the definition covers syntax and dispatch adequately. It falls short on what an agent needs before invoking a potentially destructive sequence: the relationship to open_spi/close_spi and spi_config preconditions, how read bytes are returned, and how timeout interacts with long operations like chip erase.

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 both parameters are already documented in structured fields. The description's examples usefully illustrate the 'r:N' read-length form beyond the schema's generic '[0x.. r:N d:ms]' note, but the 'd:ms' delay form shown in the schema is never exemplified. Baseline 3 fits since the schema does most of the work.

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 (Run) and resource (a BP6-style SPI instruction) and anchors it with three concrete examples covering JEDEC read, status read, and enable+chip erase. It is clear this is a raw instruction-passthrough tool, which implicitly separates it from higher-level siblings, but it never names or contrasts them explicitly.

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 worked examples imply when the tool is appropriate (raw command sequences, multi-op instructions like '[0x06] [0xC7]'), and 'dispatched to the firmware's instruction parser in SPI mode' explains the mechanism. However, there is no explicit guidance on when to use this versus spi_read, spi_write, or spi_flash_erase, and no exclusions or prerequisites (e.g., device must be opened first).

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