Skip to main content
Glama

lookup_device

Check whether a USB device's protocol is already documented by open-source projects before capturing traffic. Returns vendor/product, status, matching projects, and limits from only VID:PID.

Instructions

Before capturing: is this device's protocol already documented by an open-source project?

Returns JSON per device: vendor/product names, status ('documented', 'unknown', or 'listed in OpenDeviceDB'), projects (liquidctl, rivalcfg, turing-smart-screen-python, linux-thermalright-lcd-control, usb-rea's own case studies, with links and notes), limits (e.g. a generic chip ID shared by unrelated products), same_vendor and with online=true opendevicedb (matching records and their projects, or error when the network is down). Read-only: sends only the VID:PID, never capture contents. A matching ID is a hint, not proof of the same protocol; an unknown device stays 'unknown'. Use it before capture_start.

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": {
      "device": "<device>"
    },
    "name": "lookup_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYesUSB VID:PID as hex, e.g. '1e71:170e', or a capture path (looks up every device whose descriptor it contains)
onlineNoAlso query OpenDeviceDB's read-only public API; default false (offline table and local usb.ids only)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.13

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the disclosure burden: it declares read-only behavior, states precisely what leaves the machine (only the VID:PID, never capture contents), documents the network dependency of online=true, and notes the 'error' return when the network is down. It also discloses the boundary condition that unknown devices stay 'unknown' rather than being guessed.

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 critical question is front-loaded in one line before the return-value detail. It is somewhat dense, and the enumeration of projects and result fields partially duplicates an output schema that already exists, but the caveat sentences at the end are load-bearing rather than filler.

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

Completeness5/5

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

For a two-parameter read-only lookup with an output schema, the description supplies everything an agent needs: the ordering relative to capture_start, the offline/online split, the privacy guarantee, and the interpretation caveat about shared chip IDs. Nothing needed for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns a bump by tying online=true to a specific output field ('opendevicedb') and its failure mode, and by explaining the device parameter's dual form (VID:PID hex or a capture path that matches every contained device).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence frames a specific verb+resource question: whether a device's protocol is already documented by an open-source project. It also names the concrete data returned (vendor/product, status, projects, limits) so the agent knows exactly what 'lookup' means here.

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

Usage Guidelines5/5

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

The description brackets the call with 'Before capturing' at the front and 'Use it before capture_start' at the end, explicitly tying it to a sibling workflow step. It also warns that a matching ID is only a hint, which tells the agent when the result should not be trusted as definitive.

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