Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Collect Usb Events

collect_usb_events
Read-only

Captures USBGuard events for a configurable time window and returns them from a bounded buffer, enabling short-term USB activity monitoring with safe process termination.

Instructions

Listen for USBGuard events for a bounded time window (usbguard watch), add them to the bounded buffer and return them. Cancellable; the child process is always terminated.

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": "collect_usb_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
secondsNoObservation window.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, destructiveHint=false and idempotentHint=false. The description adds genuinely new behavioral context beyond those flags: it spawns a child process (`usbguard watch`), appends results to a bounded buffer, is cancellable, and guarantees the child process is terminated — which explains the non-idempotent hint. Return shape is left to the output schema, which exists.

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?

Two short sentences, front-loaded with the action and mechanism, with the operational guarantees (cancellable, child terminated) packed into a second sentence. Minor redundancy in 'add them to the bounded buffer and return them', but nothing wasteful.

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-value explanation is unnecessary, and the description covers process lifecycle, cancellation and buffering side effects. What remains missing is routing guidance relative to the many sibling event tools, which is the only real completeness gap for a one-parameter 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 description coverage is 100% and the single `seconds` parameter is already documented with a description, default and min/max bounds. The description only echoes 'bounded time window' without adding format or edge-case meaning, so the schema carries the load — the baseline of 3.

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 ('Listen for USBGuard events') and names the underlying mechanism (`usbguard watch`) plus the scope ('bounded time window'), which distinguishes it from buffer-reading tools. It stops short of naming a sibling alternative such as get_recent_usb_events, so the differentiation is inferable rather than explicit.

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 phrase 'for a bounded time window' implies this is for live capture over a short period rather than historical retrieval, but there is no explicit when-to-use or when-not-to-use statement and no named alternative. An agent must infer that get_recent_usb_events is the read-the-buffer counterpart.

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