Skip to main content
Glama
bitpirate-mcp
by Indigaz

close_1wire

Closes a 1-Wire session and resets the ESP32-Bit-Pirate to HiZ mode, safely ending bus communication and returning the interface to a high-impedance idle state.

Instructions

Close a 1-Wire session 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_1wire"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 meaningful behavior: this is a write operation ('[allowed-write]'), it is instant, and it leaves the hardware in HiZ mode. It does not mention what happens if the session_id is invalid, whether the session becomes unusable, or any permissions/error behavior.

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?

One front-loaded sentence stating action and effect, followed by compact bracketed metadata on write-safety and duration. No wasted prose; the bracketed tags are slightly meta but carry real information.

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?

For a single-parameter teardown tool with no output schema, the definition covers purpose, hardware side effect, and timing. The main residual gap is session lifecycle after close and error behavior on an invalid session.

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?

One required parameter with 0% schema description coverage. The phrase 'Close a 1-Wire session' implies session_id identifies the session obtained from open_1wire, but the description never says so explicitly, leaving the parameter's origin and lifecycle unstated.

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 ('Close a 1-Wire session') plus the resulting state ('reset the ESP32-Bit-Pirate to HiZ mode'). The resource name distinguishes it from the close_i2c/close_spi/close_uart siblings without needing to name them.

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: an agent can infer it should be called when finished with a 1-Wire session, but the description gives no explicit triggers, no prerequisites (e.g., an active session from open_1wire), and no when-not guidance.

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