Skip to main content
Glama

Debug deployment

k8s_debug_deployment

Collects diagnostic information for a Kubernetes deployment in a specified namespace to troubleshoot failures and identify workload issues.

Instructions

Debug a deployment by gathering diagnostic information.

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": {
      "deployment_name": "<deployment_name>",
      "namespace": "<namespace>"
    },
    "name": "k8s_debug_deployment"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
namespaceYes
deployment_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, which signals that this may touch live cluster state (e.g., exec or ephemeral debug containers), yet the description frames it purely as "gathering diagnostic information" with no hint of side effects, permissions, or scope of impact. That unexplained gap is exactly the kind of behavioral context the description should supply on top of the annotations.

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 filler or redundancy. It is efficient, but the brevity comes at the cost of substance rather than because the tool needs no further explanation.

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 three-parameter, open-world debug tool with no output schema, the definition says nothing about what is returned, whether cluster-side changes occur, or how results differ from the describe sibling. An agent can call it, but cannot predict what it will do or produce.

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?

Only schema coverage is partial (33%): the context parameter carries its own description, while namespace and deployment_name are undocumented but semantically obvious Kubernetes identifiers. The description adds no meaning beyond the schema, which is acceptable only because the two undocumented parameters are self-explanatory.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a verb ("Debug") with a resource ("a deployment") and adds "gathering diagnostic information", so the general intent is graspable. However, it does not say what diagnostics are collected or how this differs from the very similar siblings k8s_debug_pod, k8s_debug_node, k8s_debug_service, or k8s_describe_deployment, leaving the agent to guess from the name alone.

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 prerequisites, and no mention of an alternative. The most natural competitor, k8s_describe_deployment, is never referenced, so the agent has no stated basis for choosing between a describe and a debug call.

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