Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Compare Usb Devices

compare_usb_devices
Read-onlyIdempotent

Compare two USBGuard devices by internal rule ID to inspect differences in status, interfaces, and identity; serial and hash matches are returned as booleans.

Instructions

Compare observable attributes of two devices (IDs, status, interfaces). Serial and hash equality are reported as booleans only.

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": {
      "first_device_id": "<first_device_id>",
      "second_device_id": "<second_device_id>"
    },
    "name": "compare_usb_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault
first_device_idYesUSBGuard's internal device-rule ID (the number before the colon in `list-devices`). This is NOT the USB vendor/product ID.
second_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 cover read-only, idempotent, and non-destructive behavior, so the bar is lower. The description still adds real value by disclosing that serial and hash equality are returned only as booleans, which tells the agent not to expect raw identifiers and shapes how results should be interpreted.

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 short sentences with zero filler. The scope of comparison comes first and the output caveat second, which is the right order for an agent skimming the definition.

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?

An output schema exists, so return structure need not be restated, and the parameter schema is fully documented. The remaining gap is the absence of guidance on choosing this tool over related inspection tools, which is a routing concern rather than a missing fact.

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 schema itself warns that the argument is USBGuard's internal rule ID rather than a USB vendor/product ID. The description adds nothing about the two parameters, so the baseline of 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?

The description gives a specific verb and resource — compare observable attributes of two devices — and enumerates what is compared (IDs, status, interfaces). It is unambiguous against siblings like inspect_usb_device or detect_identity_changes, though it never names an alternative to differentiate itself explicitly.

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 implied by the pairwise comparison framing, but the description never states when to reach for this over inspect_usb_device or detect_duplicate_rules. There are no conditions, prerequisites, or exclusions, leaving routing to inference from the sibling list.

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