Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Detect Policy Conflicts

detect_policy_conflicts
Read-onlyIdempotent

Detects unreachable USBGuard policy rules shadowed by earlier matching rules and reports only provable conflicts while noting intentional ordered exceptions.

Instructions

Find unreachable rules whose target differs from an earlier rule that always matches first, and note intentional ordered exceptions. Only provable cases are reported.

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_policy_conflicts"
  }
}

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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds two real behavioral traits beyond them: it also reports 'intentional ordered exceptions' and it is conservative ('only provable cases are reported'). It does not state which policy is analyzed or how results are scoped, which is the main remaining gap.

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 dense sentences, front-loaded with the core definition and followed by the reporting caveat; nothing is filler. Phrasing like 'an earlier rule that always matches first' is slightly awkward but still parseable.

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 an output schema present, the description need not explain return values, and with zero parameters there is no input to document. What remains missing is context on the target policy/state the tool inspects, which an agent would want before invoking.

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

Parameters4/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 for the description to explain; baseline 4 applies. The description spends its words on result semantics instead, which is the right allocation.

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 a precise resource (unreachable/shadowed rules), and the clause 'whose target differs from an earlier rule that always matches first' effectively distinguishes it from a duplicate-rule detector without naming a sibling. It falls short of a 5 only because no sibling tool is named explicitly for 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?

Usage is implied by the task framing (policy analysis), and the differing-target clause hints at when this applies versus duplicate detection. However, there is no explicit statement of when to use it versus detect_duplicate_rules or analyze_security_policy, and no prerequisites (e.g., a policy must be loaded) are given.

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