Skip to main content
Glama
USBGuard-MCP

USBGuard-MCP

Analyze Security Policy

analyze_security_policy
Read-onlyIdempotent

Analyzes USBGuard policy structure and posture, counting rules and flagging terminal, permissive, duplicate, shadowed, and conflicting rules while noting evaluation limits.

Instructions

Analyze policy structure and posture: rule counts, terminal rule, permissive rules, duplicates, shadowed and conflicting rules. States limits it cannot evaluate (daemon implicit target, runtime conditions).

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

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.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine value beyond that by disclosing an interpretive limitation: the daemon's implicit target and runtime conditions are out of scope, which tells the agent how to read the results rather than just that the call is safe.

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 sentences, front-loaded with the positive scope (what is computed) followed by the negative scope (what is not). No filler, no restatement of the title.

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 and no parameters, the description does not need to explain return values or inputs, and the explicit limitations clause closes the main remaining risk of over-trusting the analysis. The one gap is guidance on when this whole-policy analysis should be preferred over the narrower policy detectors in the same family.

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 meaning to add and the 4 baseline applies. Nothing in the description misrepresents or implies hidden inputs.

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 gives a specific verb ('Analyze') and resource ('policy structure and posture') and enumerates exactly what is reported: rule counts, terminal rule, permissive rules, duplicates, shadowed and conflicting rules. That enumeration also implicitly overlaps with narrower siblings like detect_duplicate_rules and detect_permissive_rules, but no sibling is named to make the boundary explicit.

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 breadth of the enumerated checks suggests this is the holistic roll-up versus the single-concern detectors (detect_policy_conflicts, detect_duplicate_rules, detect_permissive_rules), but the description never says when to choose this tool over those. It does carve out a scope boundary by noting what it cannot evaluate, which helps the agent know when to look elsewhere.

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