Skip to main content
Glama
WSL DevSecOps MCP Server

WSL DevSecOps MCP Server

by darkpowerxo

scan_docker_image

Scan Docker images for vulnerabilities with Trivy, using a configurable severity threshold to surface security issues before deployment.

Instructions

Scan a Docker image for vulnerabilities using Trivy

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": {
      "image": "<image>"
    },
    "name": "scan_docker_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesDocker image name and tag (e.g., nginx:latest)
severityNoMinimum severity level (UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL)HIGH

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, and it discloses almost nothing: no indication that scanning is read-only, no note that the image may be pulled over the network, no expected duration, and no registry/auth requirements. The only behavioral hint is the named engine, Trivy, which implies a static vulnerability scan.

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?

A single tight sentence with the resource front-loaded and no wasted words. Its brevity is efficient rather than padded, though the same shortness leaves the behavioral gaps noted above.

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 simple two-parameter tool with full schema coverage this is close to sufficient, but with no output schema the description never suggests what the scan returns (findings list, severity, counts) or whether the severity parameter filters or simply ranks results. Minor but real gaps remain for a tool whose output is the entire point.

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 coverage is 100%, so both the image name/tag format and the severity threshold (with its default of HIGH and allowed values) are already fully documented in the schema. The description adds no syntax, format, or filtering behavior beyond what the schema already provides, so the baseline of 3 applies.

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+resource ('Scan a Docker image') plus the underlying engine ('using Trivy'), which is unambiguous about what the tool does. It does not reference sibling tools such as scan_kubernetes_cluster or generate_sbom, so an agent gets no explicit differentiation from those scanning alternatives.

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 or when-not-to-use guidance, and no mention of prerequisites such as needing the image locally or registry credentials. Nothing routes the agent between this and the other scan/generate tools in the sibling list.

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