Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Get Recent Usb Events

get_recent_usb_events
Read-onlyIdempotent

Retrieve buffered USB device events from memory, filtered by status or device ID and capped by limit. Run collect_usb_events first; no historical events are read.

Instructions

Return events from the bounded in-memory buffer (empty until collect_usb_events has run). Does not read history.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
statusNo
device_idNo

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 establish readOnly, idempotent, non-destructive, closed-world behavior, so the description's job is to add non-obvious traits — and it does, by disclosing that results come from a bounded in-memory buffer that may be empty and that no historical persistence is consulted. That is exactly the kind of gotcha an agent would otherwise misread as an empty result set. It does not mention buffer capacity or eviction, which keeps it from a 5.

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 buffer-source fact is front-loaded and the history exclusion follows immediately. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 not be explained, and the critical buffer-state caveat is covered. However, for a filterable list tool with three undocumented optional parameters, the description leaves ordering, filter interaction, and the meaning of a full/overwritten buffer unaddressed — adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description carries the burden of explaining limit, status, and device_id — and it says nothing about any of them. An agent must infer that 'limit' caps returned events, that 'status' filters to allow/block/reject, and that 'device_id' narrows to one device purely from the schema's type constraints, and has no information on result ordering.

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 ('Return events from the bounded in-memory buffer') and explicitly scopes it away from history ('Does not read history'). It also ties itself to the sibling collect_usb_events as the producer of the data, so an agent can distinguish it from that tool, though it does not distinguish it from the statistics-oriented siblings.

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 precondition — the buffer is 'empty until collect_usb_events has run' — plus an explicit exclusion ('Does not read history'), which is genuine when-to-use/when-not-to-use guidance. It stops short of naming what to use instead for historical data, so it is not fully exhaustive.

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