Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

List Policy Rules

list_policy_rules
Read-onlyIdempotent

Lists USBGuard policy rules in evaluation order to identify which rule decides USB device access first.

Instructions

List the policy rules enforced by the daemon (usbguard list-rules) in evaluation order. Rules are scanned top to bottom and the first applicable rule decides.

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

Input Schema

NameRequiredDescriptionDefault
limitNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 fully covered. The description adds genuinely useful domain context — rules are returned in evaluation order and the first applicable rule decides — which helps interpret results. However, it says nothing about truncation behavior despite a default cap of 200, which matters for a listing tool.

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 tightly written sentences with the resource and its ordering semantics front-loaded. Nothing is wasted and no sentence is filler.

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-value documentation is not required, and annotations cover the safety profile. What is missing is the pagination/limit behavior and any hint about how this listing relates to the many analysis siblings, leaving the definition merely adequate for a one-parameter tool.

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% and the single `limit` parameter (default 200, max 1000) is never mentioned in the description. Because a truncated rule list would misrepresent the evaluation chain, the description should have explained this parameter and its truncation effect; it does not compensate at all.

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 ('List the policy rules enforced by the daemon') and grounds it in the underlying command (`usbguard list-rules`), so an agent knows this is the raw enumeration tool. It implicitly contrasts with the analysis-oriented siblings (detect_*, analyze_*), but never names or distinguishes them explicitly.

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: the mention of evaluation order suggests this is the tool for seeing the actual rule chain, as opposed to the detection/analysis siblings. There is no explicit statement of when to prefer this over `detect_duplicate_rules`, `detect_policy_conflicts`, or `inspect_policy_rule`, and no prerequisites or exclusions.

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