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

k8s_generate_remediation

Generate a non-destructive remediation plan for Kubernetes pod incidents with GitOps YAML diff, kubectl command, and safety guardrails for blast radius and system namespace protection.

Instructions

Generate a non-destructive remediation plan, unified GitOps YAML diff, and kubectl command. Includes automated safety validation guardrails (blast radius and system namespace protection).

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": {
      "pod_name": "<pod_name>"
    },
    "name": "k8s_generate_remediation"
  }
}

Input Schema

NameRequiredDescriptionDefault
pod_nameYes
namespaceNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does add real value by declaring the operation non-destructive and disclosing built-in guardrails (blast radius and system namespace protection), but it never says whether anything is applied to the cluster, what permissions are required, or whether the output is purely advisory.

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, front-loaded with the primary action and output artifacts, followed by the safety caveat. No filler or redundancy.

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?

The output schema covers return values, so omitting them is fine, and the non-destructive/guardrail note is useful. Still, for a tool with zero annotation coverage and zero parameter documentation, an agent is left guessing about required inputs and whether any cluster state is modified.

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

Parameters2/5

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

Schema description coverage is 0% for both parameters, so the description must compensate and it does not. Neither pod_name (required) nor namespace (defaulting to 'default') is mentioned, nor is the behavior when the pod is in a non-default namespace.

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 ('Generate') and enumerates the concrete artifacts produced: a remediation plan, a unified GitOps YAML diff, and a kubectl command. That is far more informative than the name alone, though it never distinguishes itself from siblings such as k8s_simulate_scenario or k8s_run_rca.

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?

Usage is only implied: an agent can infer it should call this when it needs a fix for a pod, but there is no explicit when-to-use, no prerequisite (e.g. after diagnostics/RCA), and no statement of when a sibling like k8s_simulate_scenario would be the better choice.

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