Skip to main content
Glama
bitpirate-mcp
by Indigaz

open_spi

Switches the ESP32-Bit-Pirate into SPI mode and starts a named target engagement using the pin map stored in NVS.

Instructions

Enter SPI mode on the ESP32-Bit-Pirate and start an engagement. Pin map comes from NVS (change with spi_config). [allowed-write] [Duration: fast (~1-2 s -- mode switch).]

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": {
      "engagement_name": "<engagement_name>"
    },
    "name": "open_spi"
  }
}

Input Schema

NameRequiredDescriptionDefault
engagement_nameYesTarget device name
engagement_pathNoPath to an engagement folder (optional).

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 burden. It does disclose two valuable traits: the operation switches hardware mode (state mutation, tagged '[allowed-write]') and it is fast (~1-2 s). It does not disclose behavior if already in SPI mode, permission/authorization needs, or failure modes — significant gaps for a hardware state change.

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?

A single front-loaded sentence followed by two compact bracket tags. Nothing is wasted, though the '[allowed-write]' and duration tags are dense shorthand that a reader must decode rather than prose.

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 two-parameter mode-switch tool with a fully documented schema and no output schema, the description covers purpose, config source, and timing. It remains thin on lifecycle context — closing the mode, what an 'engagement' persists, and error behavior — which matters for a stateful hardware entry point.

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 in the schema. The description adds no meaning about engagement_name or the optional engagement_path (e.g., what a missing path defaults to). Baseline 3 applies since the schema does the heavy lifting.

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 and resource: 'Enter SPI mode on the ESP32-Bit-Pirate and start an engagement.' The SPI framing distinguishes it from the open_i2c/open_uart/open_1wire siblings without needing to name them. It stops short of explicit sibling differentiation in prose, so not a 5.

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 only implied: the agent can infer this must precede spi_read/spi_write/spi_transfer, but the description never says so. It does route the agent to spi_config for changing the NVS pin map, which is a useful pointer, but there is no statement of preconditions (e.g., whether an existing mode must be closed first) or when to prefer another open_* tool.

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