Skip to main content
Glama
bitpirate-mcp
by Indigaz

i2c_dump

Read an I2C device's registers sequentially to dump its memory and save the data to artifacts for inspection or analysis.

Instructions

Dump memory from an I2C device by reading all registers sequentially. Saves to artifacts. [read-only] [Duration: slow for large sizes (~1-2 min for 64 KB EEPROM). Fast for small sizes (256 bytes ~2-5 s). Parameterized by size. Background-dispatch recommended for large dumps.]

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>"
    },
    "name": "i2c_dump"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoNumber of bytes to dump
session_idYes
device_addrYes7-bit device address (hex string like '0x50' or integer)
register_bytesNoRegister/memory address width. 1 for most small EEPROMs and sensors (up to 256 bytes). 2 for 24C32+ and larger EEPROMs (up to 64KB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does add [read-only], an artifact side effect, and size-dependent timing estimates, which is genuine value. But it says nothing about error behavior (unreadable/unpopulated registers, NAKs), address-width mismatch consequences, or whether a partial dump is returned on failure — serious gaps for a hardware read tool.

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?

The core operation is front-loaded in the first two sentences, and the bracketed tail is dense rather than rambling. The bracketed meta-annotation style is a little informal and mixes several concerns (safety, timing, dispatch) into one block, costing it a point.

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 4-parameter tool with no output schema, 'Saves to artifacts' is the only return-value information, and it omits where artifacts land, how to retrieve them (e.g., via read_output), or their format. Timing and dispatch guidance are present, so it is adequate but leaves the result path underspecified.

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 75%, so the schema already documents size, device_addr, and register_bytes. The description adds real semantics for size by tying it to duration ('~1-2 min for 64 KB', '256 bytes ~2-5 s'), but contributes nothing to register_bytes or device_addr beyond the schema.

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 — 'Dump memory from an I2C device by reading all registers sequentially' — plus the side effect that results are saved to artifacts. It does not explicitly distinguish itself from the sibling i2c_read, so it falls short of 5, but an agent can tell what it does.

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 statement of when to use this instead of i2c_read, i2c_scan, or spi_dump. The duration notes ('slow for large sizes', 'Background-dispatch recommended for large dumps') inform how to call it, not whether it is the right tool for a given task.

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