Skip to main content
Glama
bitpirate-mcp
by Indigaz

i2c_scan

Scan an I2C bus to detect connected devices and return their 7-bit addresses with device hints for identifying attached hardware.

Instructions

Scan the I2C bus for devices. Returns 7-bit addresses with device hints. [read-only] [Duration: slow (~3-10 s -- sweeps all 128 7-bit addresses). Background-dispatch recommended.]

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": "i2c_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it flags read-only behavior, states the cost (~3-10 s because all 128 addresses are swept), and recommends background dispatch. It omits that the bus likely must be opened first and says nothing about error behavior when no devices respond.

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 plus bracketed metadata; the return value and the cost warning are front-loaded with no filler. The bracket notation is compact and readable.

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?

Return shape and timing are covered and there is no output schema to duplicate, which suits a simple tool. However, the definition omits prerequisites (a session/bus presumably opened via open_i2c) and the meaning of session_id, leaving an agent to infer the setup sequence.

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 description coverage is 0% and the single required parameter session_id is never mentioned in the description, so it adds no meaning beyond the schema. For a one-parameter tool this is a minor but real gap, since the description must compensate at low coverage.

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?

Clear specific verb+resource: "Scan the I2C bus for devices" plus a statement of what is returned (7-bit addresses with device hints). It is distinguishable from siblings like i2c_read/i2c_write by being a discovery operation, though it never explicitly contrasts with them.

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: scanning precedes reading/writing devices, and "Background-dispatch recommended" gives operational guidance. There is no explicit when-to-use/when-not statement nor any reference to a prerequisite such as open_i2c.

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