Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Detect Identity Changes

detect_identity_changes
Read-onlyIdempotent

Compare a USB device against a saved baseline to detect identity changes; only supplied fields are checked, and redacted serial and hash values are skipped.

Instructions

Compare a device against a baseline you collected earlier (see the baseline_template of inspect_usb_device). Only supplied fields are compared; serial and hash values are never echoed, and while their redaction is on they are skipped entirely (reported in skipped_fields) so the tool cannot be used to guess hidden identifiers.

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>",
      "baseline": "<baseline>"
    },
    "name": "detect_identity_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
baselineYes
device_idYesUSBGuard device ID.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnly/idempotent/non-destructive annotations, it discloses non-obvious semantics: only supplied fields are compared, serial and hash values are never echoed back, and under redaction those fields are skipped entirely and surfaced in `skipped_fields`. That is exactly the kind of hidden-identifier protection an agent could not infer from the schema.

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?

One dense sentence with the primary action front-loaded and the privacy caveat trailing. The nested parenthetical about skipped fields is slightly tangled but every clause carries real information; nothing is redundant.

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-format detail is not required, and the description correctly offloads baseline construction to inspect_usb_device. What remains thin is the nested baseline contract and any error/precondition behavior for an invalid device_id, but for a two-parameter idempotent comparison tool this is close to 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?

Schema description coverage is 50% (only device_id carries a description), and the nested baseline object's five properties are undocumented in the schema. The description partially compensates by explaining that omitted fields are not compared and that serial/hash are skipped under redaction, but it leaves the baseline object's structure, the interfaces format, and the null/default behavior unexplained.

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: compare a device against a previously collected baseline. It also points at the producer of that baseline (inspect_usb_device's `baseline_template`), which orients the agent well. It does not explicitly distinguish itself from the similarly named compare_usb_devices sibling, so a 4 rather than 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 Guidelines4/5

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

Gives a clear prerequisite and context: the baseline must have been collected earlier via inspect_usb_device. There are no explicit exclusions or named alternatives (e.g., when to use compare_usb_devices instead), so it falls short of the when/when-not standard.

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