Skip to main content
Glama
bitpirate-mcp
by Indigaz

onewire_read

Send arbitrary bytes on the 1-Wire bus and read back the response, letting an AI agent probe 1-Wire devices and capture their replies during hardware debugging.

Instructions

Send arbitrary bytes on the 1-Wire bus and read back a response. [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>",
      "write_hex": "<write_hex>",
      "read_bytes": "<read_bytes>"
    },
    "name": "onewire_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
write_hexYesHex string of bytes to send (e.g. 'CC44')
read_bytesYesNumber of bytes to read back
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations supplied, the description does carry some behavioral weight: it declares the operation read-only and instant-duration, which tells an agent it is safe and fast. However, it omits whether the bus must be acquired first via open_1wire, what happens on bus errors or missing devices, and whether the transmitted bytes can disturb device state.

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 front-loaded sentences with bracketed qualifiers that convey safety and timing compactly. Nothing is redundant, though the square-bracket tags read as fragments rather than integrated guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter raw bus transaction with no output schema, the description should explain the session prerequisite and the shape of the returned data (hex string vs byte count). Neither is present, leaving an agent to guess how to consume the response.

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?

At 67% schema coverage, session_id has no documented meaning anywhere, and the description adds nothing about it—not even that it comes from open_1wire. write_hex and read_bytes are adequately covered by the schema already, so the description contributes no extra meaning.

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 states a specific verb and resource: sending hex bytes on the 1-Wire bus and reading a response, which frames it as a bidirectional transaction rather than a pure read. It is clear enough to separate from open_1wire/close_1wire/onewire_search, 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 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 use this versus onewire_search or the open/close siblings, and no stated prerequisite that a session must already be open. The only usage signal is the word 'arbitrary', implying low-level raw traffic.

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