Skip to main content
Glama
WSL DevSecOps MCP Server

WSL DevSecOps MCP Server

by darkpowerxo

scan_kubernetes_cluster

Scans Kubernetes clusters with Kubescape to detect security misconfigurations against NSA, MITRE, or CIS frameworks, optionally targeting a namespace.

Instructions

Scan Kubernetes cluster for security issues using Kubescape

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

Input Schema

NameRequiredDescriptionDefault
frameworkNoSecurity framework to use (nsa, mitre, cis)nsa
namespaceNoSpecific namespace to scan (optional)

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?

No annotations are provided, so the description carries the full burden. It does not say whether the scan is read-only, whether it requires cluster-admin credentials, how long it may take, whether results are persisted, or what the response looks like. Only the word 'scan' hints that this is a non-mutating inspection.

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 front-loaded sentence with no redundant or filler wording. It is efficient, though its brevity comes at the cost of the missing behavioral and usage detail noted elsewhere.

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

Completeness2/5

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

For a scanning tool with no annotations and no output schema, the definition says nothing about permissions, runtime, result format, or failure behavior. An agent could invoke it but cannot predict what it returns or what access it needs.

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%: the framework parameter documents its default (nsa) and allowed values, and namespace is described as optional. The description adds nothing beyond the schema, 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 (scan) and resource (Kubernetes cluster) plus the engine used (Kubescape), so the agent knows it performs a cluster security assessment rather than listing or logging resources. It does not explicitly distinguish itself from scan_docker_image or generate_sbom, but the resource scope is clear enough to pick it out.

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 guidance on when to use this versus the sibling scanning or listing tools, no prerequisites (such as cluster connectivity or kubeconfig), and no statement about scope defaults beyond the schema's framework default. The agent must infer that this is the tool for whole-cluster or single-namespace scans.

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