Skip to main content
Glama
bitpirate-mcp
by Indigaz

open_i2c

Opens an I2C connection with pull-ups enabled and starts an engagement for probing target devices or writing to the bus.

Instructions

Open an I2C connection and start an engagement. Configures I2C mode with pullups enabled. [allowed-write] [Duration: fast (~0.5-2 s -- mode switch + folder creation).]

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_i2c"
  }
}

Input Schema

NameRequiredDescriptionDefault
speedNoI2C clock speed in Hz
current_maNoCurrent limit in mA
voltage_mvNoTarget voltage in mV (optional, enables PSU)
clock_stretchNoEnable clock stretching
engagement_nameYesTarget device name
engagement_pathNoPath to an engagement folder (from project-mcp). If provided, writes to <engagement_path>/i2c/ instead of creating a standalone engagement.

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 must carry the behavioral load; it does disclose meaningful side effects: it writes to a folder, creates an engagement, enables pullups, and takes roughly 0.5-2 s. It does not state what happens on failure, whether an existing connection is replaced, or any cleanup/close requirements.

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 plus bracketed metadata, with the core action and configuration front-loaded and no filler. The duration note and write marker are dense but useful.

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 six-parameter setup tool with no output schema, the description covers the action, config, side effects, and timing, and the schema covers all parameters. It falls short on sequencing relative to i2c_read/i2c_write and close_i2c, and on the standalone-vs-engagement_path choice.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already documents speed, current, voltage, clock_stretch, engagement_name, and engagement_path. The description adds only the pullups default state on top, but the 100% coverage baseline makes 4 appropriate.

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?

The description gives a specific verb and resource ('Open an I2C connection and start an engagement') and adds the concrete configuration applied ('pullups enabled'). It is clearly distinguishable from siblings like close_i2c or i2c_read by the 'open' action, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to call this versus alternatives, nor any stated prerequisite such as needing to open before i2c_read/i2c_write or choosing between a standalone engagement and an existing engagement_path. Usage is only inferable from the tool name and the parameter schema.

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