Skip to main content
Glama
kube-sentinel-mcp
by ekrmcakir

k8s_scan_incidents

Scan a Kubernetes cluster or namespace to find unhealthy workloads and identify pods in CrashLoopBackOff, OOMKilled, ImagePullBackOff, Error, or Pending states.

Instructions

Scan the Kubernetes cluster or specified namespace for unhealthy workloads. Identifies pods in CrashLoopBackOff, OOMKilled, ImagePullBackOff, Error, or Pending states.

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

Input Schema

NameRequiredDescriptionDefault
namespaceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it discloses the detection scope and the specific failure states checked, which is useful. It does not state that the operation is read-only, what permissions are required, or whether the scan is expensive/rate-limited, so meaningful gaps remain for a cluster-wide operation.

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 tight sentences with the action and scope front-loaded and the detected states enumerated second. No filler or redundant restatement of the tool name.

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?

For a single optional-parameter scan tool with an output schema present, the description covers scope and detection criteria adequately, so return values need not be explained. The main omission is the safety/permission profile, which matters for a cluster-wide read but is a modest gap given the tool's simplicity.

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%, but the description compensates by explaining that the namespace parameter scopes the scan and that omitting it scans the entire cluster, which is the key semantic an agent needs. It does not discuss namespace format or default behavior explicitly beyond that implication.

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 and resource ("Scan the Kubernetes cluster or specified namespace for unhealthy workloads") and enumerates the exact pod states it detects, so the agent knows precisely what the tool returns. It does not name or differentiate itself from siblings like k8s_get_pod_diagnostics or k8s_run_rca, which keeps it short of a 5.

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?

The description implies when to use it (to find unhealthy workloads) and clarifies the two scopes: whole cluster or a single namespace. It gives no explicit when-not-to-use guidance and does not point to alternatives such as diagnostics or RCA tools for deeper investigation, leaving routing to inference.

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