Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Detect Permissive Rules

detect_permissive_rules
Read-onlyIdempotent

Identify overly broad USB allow rules—allow-all, wildcard IDs, vendor or interface-class wildcards, and spoofable ID-only matches—to audit policy exposure and tighten device access.

Instructions

Find allow rules that are excessively broad: allow-all, wildcard IDs, vendor-wide or interface-class wildcards, and ID-only matches that can be imitated.

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_permissive_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

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuine value beyond that by disclosing the detection criteria themselves, including the reasoning that ID-only matches 'can be imitated' — i.e., what the tool will and will not flag. It stops short of describing finding severity or how results are ordered, but an output schema exists to carry the return shape.

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?

A single sentence, front-loaded with the verb and resource, with the criteria clause doing real work. No filler, no restatement of the title or annotations.

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?

For a zero-argument, read-only detector with a full annotation set and an output schema, the description supplies what's needed to select and call it: the exact criteria it evaluates. The only gap is guidance on acting on results or which sibling to consult next, which is a minor omission given the output schema handles return values.

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 to add; the baseline for a no-param tool is 4. The description correctly avoids wasting space restating an empty schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb ('Find') plus a precise resource ('allow rules') followed by an enumerated list of what counts as excessively broad: allow-all, wildcard IDs, vendor-wide, interface-class wildcards, and imitable ID-only matches. That enumeration distinguishes it from sibling detectors like detect_duplicate_rules and detect_policy_conflicts without needing to name them.

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 tool name and the criteria list — an agent can infer this is the audit step for overly broad allow rules — but there is no explicit when-to-use statement, no when-not condition, and no pointer to alternatives such as recommend_policy_improvements or detect_policy_conflicts for follow-up.

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