Skip to main content
Glama
bitpirate-mcp
by Indigaz

i2c_read

Read bytes from an I2C device at a given address, optionally starting at a specific register, to inspect sensor or chip data.

Instructions

Read bytes from an I2C device, optionally from a specific register. [read-only] [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>"
    },
    "name": "i2c_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNoNumber of bytes to read
session_idYes
device_addrYes7-bit device address (hex string like '0x50' or integer)
register_addrNoRegister address to read from (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description does carry some behavioral weight by tagging the operation as read-only and 'instant' duration, which tells the agent it is a safe, non-blocking call. It says nothing about failure modes (NACK, bad address) or what the returned byte payload looks like.

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 tight clauses with the core action front-loaded and the register option and safety/duration tags bracketed at the end. Nothing is wasteful, though the bracketed tags read as metadata rather than integrated prose.

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 four-parameter read with no output schema, the description covers the action, the optional register scoping, read-only safety, and speed. The remaining gaps, session prerequisites and return-value shape, are the main omissions.

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% with per-parameter descriptions for length, device_addr, and register_addr, so the schema does most of the work. The description only reinforces that register_addr is optional, adding little beyond structured fields.

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 uses a concrete verb and resource ('Read bytes from an I2C device') and clarifies the optional register-scoped variant, which separates it from i2c_write and i2c_dump. It never names a sibling explicitly, so it stops short of a 5.

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 when-to-use or when-not guidance and no mention of the required open_i2c session prerequisite implied by session_id. The agent must infer that this is the plain-read counterpart to i2c_dump and i2c_scan from the name alone.

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