Skip to main content
Glama
bitpirate-mcp
by Indigaz

i2c_write

Destructive

Writes bytes to an I2C device register, altering device configuration or EEPROM contents. Requires explicit confirmation, so use it for controlled register updates on the target chip.

Instructions

Write bytes to an I2C device register. DANGEROUS: may alter device configuration or EEPROM contents. [approval-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>",
      "device_addr": "<device_addr>",
      "register_addr": "<register_addr>",
      "data_hex": "<data_hex>"
    },
    "name": "i2c_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
data_hexYesHex string of data bytes to write
_confirmedNoSet true to confirm execution
session_idYes
device_addrYes7-bit device address (hex string like '0x50' or integer)
register_addrYesRegister address to write to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes beyond the destructiveHint annotation by naming concrete consequences (device configuration changes, EEPROM corruption) and the execution duration. Does not mention whether writes are reversible or how errors/NAKs are reported, but the risk profile is meaningfully enriched.

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 sentences, front-loaded with the operation and severity. The bracket metadata tags are slightly noisy but carry real signal; minimal waste overall.

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?

Adequate for a destructive 5-parameter tool: purpose, danger, and duration are covered. However, the confirmation workflow and session prerequisites an agent must satisfy before calling are left implicit, which matters for an approval-gated destructive operation.

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 coverage is 80%, so device_addr, register_addr, and data_hex are already documented. The description adds nothing on the approval flow for _confirmed or the required session_id, leaving the highest-friction parameter undocumented in prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Write bytes to an I2C device register') with unambiguous scope. The write direction alone distinguishes it from i2c_read/i2c_dump siblings without opening their schemas.

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?

The danger warning implies caution and the [approval-write] tag hints at a confirmation flow, but the description never states prerequisites (open session), when to prefer alternatives, or how confirmation relates to the _confirmed parameter. Usage is inferable but not spelled out.

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