Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Detect Duplicate Rules

detect_duplicate_rules
Read-onlyIdempotent

Detect duplicate or redundant USBGuard policy rules, including rules fully covered by earlier unconditional rules with the same target, to simplify and audit device access policies.

Instructions

Find rules that repeat, or are fully covered by, an earlier unconditional rule with the same target (potentially redundant).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare read-only, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds the useful semantic definition of a duplicate, including the ordering constraint ('an earlier unconditional rule') and the same-target requirement. It does not state whether findings are reported as boolean, per-rule annotations, or with severity, though the output schema exists and covers return structure.

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?

A single front-loaded sentence with no filler; the core criterion appears immediately. The trailing parenthetical '(potentially redundant)' restates the point already made by 'duplicate' and is mildly wasteful, and the embedded clause makes the sentence dense to parse.

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?

With no parameters, rich annotations, and an output schema, the description only needs to define the detection criterion, which it does with reasonable precision. It would be stronger if it scoped the analysis (whole ruleset vs. a target subset) and clarified what counts as an 'earlier' rule, but nothing critical is missing for invocation.

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?

The tool takes zero parameters, so there is no parameter semantics to add; the baseline of 4 applies only where description must compensate for schema gaps, and here the empty schema is self-explanatory. The description adds no parameter information because none is needed.

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 names a specific verb (find) and precisely defines the resource and criterion: rules that repeat or are fully covered by an earlier unconditional rule with the same target. It is clear what is returned conceptually. It does not, however, distinguish itself from detection siblings such as detect_permissive_rules or detect_policy_conflicts.

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 only implied by the phrase 'potentially redundant,' which suggests the tool is for policy cleanup or analysis. There is no explicit statement of when to run this instead of detect_policy_conflicts or list_policy_rules, and no note on prerequisites such as an existing policy being loaded.

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