Skip to main content
Glama
bitpirate-mcp
by Indigaz

close_i2c

Ends an active I2C session and returns the ESP32-Bit-Pirate to high-impedance (HiZ) mode to safely release bus lines.

Instructions

Close an I2C 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_i2c"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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, and it does disclose real behavior beyond the name: it resets the device to HiZ mode, is tagged [allowed-write], and is instant. It omits what happens on failure, whether the session_id is invalidated, and whether other open sessions are affected.

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 short sentences with the action front-loaded and no filler; the bracketed tags compactly convey write-access and latency without wasting words.

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 single-parameter session teardown with no output schema, the description is adequate but thin: purpose and side effect are covered, while the session_id's provenance and error behavior are not. It is minimally sufficient rather than complete.

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 coverage is 0% and the description says nothing about session_id — not its format, not that it comes from open_i2c, not whether it is a device handle or a string. With one required undocumented parameter, the description fails to compensate for the schema 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?

Specific verb and resource: "Close an I2C session", plus the concrete side effect of resetting the device to HiZ mode. This clearly separates it from i2c_read/i2c_write and parallels the close_spi/close_uart/close_1wire siblings, though it never names a sibling 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?

Usage is only implied by the verb: an agent infers it should be called when finished with an I2C session opened via open_i2c. There is no explicit when-to-use statement, no prerequisite (e.g. an active session), and no mention of what happens if called twice or without an open session.

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