Skip to main content
Glama

list_violations

List compliance violations recorded by the most recent scan, optionally filtered by severity. Returns each violation's ID, rule, node, severity, baseline, and evidence.

Instructions

[READ] List compliance violations recorded by the most recent scan snapshot in the local twin DB (~/.vmware-harden/twin.duckdb). severity (optional string): filter to exactly one of 'critical', 'high', 'medium', 'low', 'info'; omit to return all severities. Returns every matching row (no pagination), sorted severity-descending then rule_id, each as {id, rule_id, node_id, severity, baseline_id, evidence}. Returns [] when no scan exists — run scan_target first. Read-only local DB query, no network calls. Pass a row's 'id' to get_remediation for a fix plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
severityNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations provided, so description carries full burden. Discloses read-only, local DB query, no network calls, no pagination, sorting order, output fields, and empty array return. Covers all key behavioral aspects.

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?

Well-organized: purpose first, then parameter, then output behavior, then prerequisite. No redundant sentences. Efficient use of text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema, the description already details the output fields and return type. All relevant behaviors and context (e.g., file path, sorting) are covered. Prerequisite and connection to sibling tool 'get_remediation' provided.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has one optional parameter 'severity' with only type info. Description adds the exact valid values ('critical','high','medium','low','info'), behavior when omitted (returns all), and that it filters exactly one. Greatly enhances parameter understanding.

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?

Description starts with '[READ]' and states 'List compliance violations recorded by the most recent scan snapshot'. It clearly defines what the tool does and distinguishes from siblings like 'scan_target' (which runs a scan) and 'get_remediation' (which provides fix plans).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Prerequisite mentioned: 'run scan_target first'. Explains behavior when no scan exists (returns []). Provides guidance on severity filter. Lacks explicit when-not-to-use or comparison with siblings like 'list_baselines' or 'list_drift_events'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zw008/VMware-Harden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server