Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Preview Policy Rule

preview_policy_rule
Read-onlyIdempotent

Validate and analyze a proposed USBGuard rule without applying it. The rule is parsed in-process, never sent to USBGuard or a shell, so you can check syntax and safety before deployment.

Instructions

Validate and analyze a proposed rule without applying it. The text is parsed in-process and is never passed to USBGuard or a shell.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "rule": "<rule>"
    },
    "name": "preview_policy_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleYesA full USBGuard rule such as: allow id 1234:5678 hash "..."

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false. The description adds valuable behavioral context beyond annotations by explaining that parsing happens in-process and that the text is never passed to USBGuard or a shell, which is relevant for safety expectations.

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?

The description is two tight sentences with no redundant wording. The key scope limitation is front-loaded in the first sentence, and the second adds important safety context without wasting space.

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 one fully described parameter, complete annotations, and an output schema, the definition gives enough information to invoke the tool correctly. It could improve by explicitly distinguishing this tool from similar policy-analysis siblings, but nothing essential is missing.

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?

Schema description coverage is 100%, and the single parameter is fully documented with an example in the schema. The description adds no parameter-level semantics beyond what the schema already provides, so the baseline of 3 is appropriate.

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 uses a specific verb pair, 'validate and analyze', and a specific resource, 'a proposed rule', with the important scope qualifier 'without applying it'. It does not explicitly differentiate itself from siblings such as inspect_policy_rule, so it falls short of a 5.

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?

The phrase 'without applying it' implies the tool is for pre-application validation, which gives some when-to-use guidance. However, it does not explicitly state when to choose this over inspect_policy_rule or analyze_security_policy, nor does it describe exclusions.

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