Skip to main content
Glama
bitpirate-mcp
by Indigaz

onewire_search

Search a 1-Wire bus for a single device by reading its ROM, returning family code, serial number, and CRC validity; use when exactly one device is present.

Instructions

Search for a device on the 1-Wire bus using Read ROM (0x33). Returns family code, serial number, and CRC validity. Works when exactly one device is present. [read-only] [Duration: fast (~1-3 s -- Read ROM sequence).]

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

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description does real work: it marks the operation read-only, gives a duration (~1-3 s), and describes the returned fields (family code, serial number, CRC validity). It omits the failure mode when more than one device responds (collision/error behavior), which is the main behavioral risk for a ROM-read.

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?

Three short sentences, front-loaded with the action and protocol byte, with the precondition before the metadata tags. The bracketed '[read-only] [Duration: ...]' trailer is slightly clunky but carries real information.

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 one-parameter search tool with no output schema, the description covers purpose, protocol, return values, timing, and the single-device precondition. The remaining gap is the session_id source and the multi-device failure behavior.

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?

The single parameter session_id has 0% schema description coverage, and the description never mentions it or what a valid session_id is (presumably from open_1wire). With the schema carrying no meaning, the description should have compensated and does not.

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 ('Search for a device on the 1-Wire bus') plus the underlying protocol command (Read ROM, 0x33), which is far more informative than the tool name alone. It does not explicitly contrast with the sibling onewire_read or list_devices, so an agent must infer which is the right enumeration call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Works when exactly one device is present' gives a concrete precondition that implies this is the wrong tool for a multi-drop bus. It stops short of naming an alternative for the multi-device case, so the routing guidance is strong but not fully closed.

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