Skip to main content
Glama
bitpirate-mcp
by Indigaz

close_spi

Closes the SPI flash shell session and resets the ESP32-Bit-Pirate to HiZ mode, releasing the bus safely.

Instructions

Exit the flash shell and reset the ESP32-Bit-Pirate to HiZ mode. [allowed-write] [Duration: instant.]

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": {
      "session_id": "<session_id>"
    },
    "name": "close_spi"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 add value: it discloses the post-condition (device left in HiZ mode), a cost profile ('Duration: instant'), and a write marker ('[allowed-write]'). It omits key behavior such as whether the session_id becomes invalid, whether an open session is required, and whether any shell state is destroyed.

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?

Two short clauses, front-loaded with the action and its end state; nothing redundant. The bracketed metadata tags are terse but readable, though their ad-hoc format is slightly less clear than prose would be.

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?

The tool is simple (one parameter, no output schema, no nested objects), so the description does not need to explain return values. However, it leaves the only parameter undefined and does not state session prerequisites or the effect on an existing shell/session, which for a state-resetting call is a meaningful omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the sole required parameter, session_id, and the description never mentions it. The agent must guess whether this is an SPI session handle, whether it must match an open_spi call, and what happens on a stale or wrong id — the description does not compensate for the coverage gap.

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 action with object and end state: 'Exit the flash shell and reset the ESP32-Bit-Pirate to HiZ mode.' This is a concrete verb+resource pair that an agent can distinguish from protocol-specific closers like close_uart or close_i2c. It does not explicitly name its own alternative (open_spi), preventing 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 phrase 'Exit the flash shell' suggests calling this after SPI flash operations, but there is no explicit when-to-use, when-not-to-use, or prerequisite (e.g., must an SPI session be open first?). No alternatives are named.

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