Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

trivy_scan

Run vulnerability scans on container images, filesystems, repositories, and configs; filter by severity and export results as JSON, table, or SARIF.

Instructions

Execute Trivy for container and filesystem vulnerability scanning.

Args: scan_type: Type of scan (image, fs, repo, config) target: Target to scan (image name, directory, repository) output_format: Output format (json, table, sarif) severity: Severity filter (UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL) output_file: File to save results additional_args: Additional Trivy arguments

Returns: Vulnerability scan results

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

Input Schema

NameRequiredDescriptionDefault
targetNo
severityNo
scan_typeNoimage
output_fileNo
output_formatNojson
additional_argsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It says only 'Execute Trivy' and 'Returns: Vulnerability scan results' — it never discloses prerequisites (Docker for image scans, vulnerability DB download/network access), runtime cost, whether files are written when output_file is set, or error behavior for an invalid target.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The one-line purpose statement is front-loaded, followed by a compact Args/Returns block with one entry per parameter. No filler sentences; the only redundancy is a Returns line that duplicates the output schema.

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?

For a six-parameter tool with zero schema coverage, the description covers the parameters adequately and an output schema exists so return details are not required. However, it omits the selection criteria against competing scanners and any operational preconditions, which are the main things an agent still needs before invoking it.

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?

Schema coverage is 0%, so the description must compensate, and it largely does: it names all six parameters and enumerates the valid values for scan_type (image, fs, repo, config), output_format (json, table, sarif), and severity (UNKNOWN–CRITICAL), none of which appear in the schema. It falls short only on 'target' and 'additional_args', whose accepted formats and syntax are left vague.

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 states a specific verb and resource: 'Execute Trivy for container and filesystem vulnerability scanning', which is unambiguous about what the tool does. It does not distinguish itself from siblings such as clair_vulnerability_scan or checkov_iac_scan, so an agent cannot tell from the description alone which vulnerability scanner to pick.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no mention of alternatives despite several overlapping siblings (clair_vulnerability_scan, checkov_iac_scan, jaeles_vulnerability_scan). The only implicit guidance is the scan_type enum inside the Args block, which hints at scope but does not route the agent.

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

Deploy Server

Other Tools