Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Search Usb Devices

search_usb_devices
Read-onlyIdempotent

Search and filter USB devices by name, vendor/product ID, interface prefix, policy status, or category to locate devices for inspection or auditing.

Instructions

Search devices by name substring, vendor/product ID, interface prefix, status or classification. Filters are ANDed. Serial search is intentionally unsupported so serials cannot be probed one value at a time.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_usb_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
limitNoMaximum devices to return.
statusNo
categoryNoClassification, e.g. mass_storage, keyboard, composite_device
interfaceNoInterface prefix, e.g. 08 or 03:01
vendor_idNo
product_idNo

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 readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds behavior beyond that: the AND semantics of combined filters and the deliberate omission of serial-based lookup to prevent one-value-at-a-time probing. That security rationale is real added context not present in any structured field.

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?

Three short sentences, front-loaded with the filter list, followed by the AND rule and the exclusion. Every sentence carries distinct information; nothing is redundant with the title or 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?

An output schema exists, so return values need no explanation, and annotations cover the safety profile. The description completes the picture with filter semantics and a deliberate limitation. Only the missing mention of result capping (the limit parameter) keeps it from full completeness for a 7-parameter search tool.

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 only 43% across 7 parameters, so the description must carry weight. It names name, vendor_id, product_id, interface, status and category, and clarifies that name matches a substring and interface matches a prefix, which the schema does not state. The limit parameter and the ID format constraints are left entirely to the schema, so compensation is partial rather than complete.

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 (search) and resource (devices) plus the exact filter dimensions: name substring, vendor/product ID, interface prefix, status, classification. An agent can distinguish this from list_usb_devices because it is filter-driven rather than an enumeration. It stops short of 5 only because no sibling is named to anchor the contrast.

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?

Gives useful usage context: filters are ANDed, and serial search is deliberately unsupported. That implies when to use this (multi-criteria narrowing) and what not to ask of it. However, it never says when to prefer list_usb_devices or inspect_usb_device instead, so the alternative-selection guidance is left to inference.

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