Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Classify Usb Device

classify_usb_device
Read-onlyIdempotent

Identifies probable USB device categories from interface class codes, with per-interface reasoning, confidence, and limitations; composite devices list every function.

Instructions

Identify probable device categories from USB interface class codes, with per-interface reasoning, confidence and limitations. Composite devices list every function.

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": "classify_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 a safe, read-only, idempotent, closed-world operation, and the description adds real context beyond them: results are probabilistic ('probable'), each interface gets reasoning plus a confidence value and stated limitations, and composite devices enumerate all functions. Little is left undisclosed aside from how confidence is computed.

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?

Two tight sentences with the core purpose front-loaded and the composite-device edge case second. Every clause earns its place and there is no boilerplate.

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 single-parameter read tool with annotations and an output schema, the description covers purpose, uncertainty semantics, and the composite-device case. Slightly more guidance on selecting it over sibling inspection tools would make it complete.

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?

Only one parameter, and the input schema already carries a full 100% description distinguishing the USBGuard rule ID from vendor/product IDs. The description adds nothing further about the parameter, so the baseline 3 applies.

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: identify probable device categories from USB interface class codes. It partially differentiates from siblings like detect_composite_devices by noting composite devices list every function, though it does not name the tool it is not.

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: an agent can infer it calls this to get a category label rather than raw descriptors, but there is no explicit when-to-use, when-not-to-use, or named alternative such as inspect_usb_device for raw device details.

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