Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Inspect Usb Device

inspect_usb_device
Read-onlyIdempotent

Retrieves all observable attributes and classification for a USB device by ID, returning a baseline template for detecting identity changes.

Instructions

Return all observable attributes of one device plus its classification and a baseline_template usable with detect_identity_changes.

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_id": "<device_id>"
    },
    "name": "inspect_usb_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYesUSBGuard's internal device-rule ID (the number before the colon in `list-devices`). This is NOT the USB vendor/product ID.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine value by disclosing the shape of the payload (attributes plus classification plus a baseline template), which is behavioral context the annotations do not convey. It could still note that an unknown or out-of-range device_id fails, but the core disclosure is solid.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence that front-loads the main return content and ends with the actionable cross-tool hook. No filler and nothing redundant with the schema.

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?

One required parameter, full schema coverage, and an output schema means the description needn't spell out return fields; it still names the notable ones. The only shortfall is that no failure conditions or relationship to the closely-named classification/compare siblings are stated.

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 100% and the parameter description already explains that device_id is USBGuard's internal rule ID, not a vendor/product ID. The tool description only says 'one device', adding no syntax, range, or format detail beyond the schema. Baseline 3 is appropriate when the schema carries the semantics.

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 (return) and resource (all observable attributes of one device) and adds what else comes back: classification and a `baseline_template`. That makes it clearly distinct from list/search siblings. It doesn't explicitly distinguish itself from `classify_usb_device` or `compare_usb_devices`, 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 Guidelines3/5

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

The mention that the returned `baseline_template` is usable with `detect_identity_changes` gives an implied workflow, and 'one device' implies single-target inspection rather than bulk listing. There is no explicit when-to-use/when-not or statement of when to prefer `classify_usb_device`, `compare_usb_devices`, or `list_usb_devices` instead.

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