Skip to main content
Glama

Debug pod

k8s_debug_pod

Gather diagnostic information from a Kubernetes pod to troubleshoot issues; specify the pod name and namespace.

Instructions

Debug a pod 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": {
      "pod_name": "<pod_name>",
      "namespace": "<namespace>"
    },
    "name": "k8s_debug_pod"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.9/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so this is a mutating/open-world call, yet the description's phrase 'gathering diagnostic information' reads as a passive read and does not disclose what the tool changes (e.g. whether it creates a debug container or executes commands in the pod). It also omits permission requirements and any side effects; the mild tension with readOnlyHint=false is not a hard contradiction but leaves the agent under-informed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is short and front-loaded with verb+resource, but brevity here is under-specification rather than efficiency. There is no structure for what the diagnostics consist of or what the agent should expect back.

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

Completeness1/5

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

For a 3-parameter, open-world, non-read-only operation with no output schema and minimal annotation coverage, the description provides nothing about behavior, return content, or side effects. An agent cannot predict what this call does or when to prefer it over sibling diagnostic tools.

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

Parameters1/5

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

Schema coverage is only 33%: pod_name and namespace are required with no descriptions in the schema, and the description supplies no meaning for them or for context. The one documented parameter (context) is explained in the schema only, so the description adds nothing beyond structured fields.

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

Purpose2/5

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

"Debug a pod by gathering diagnostic information" essentially restates the title 'Debug pod' with a vague expansion. It never says what diagnostics are gathered (events, container state, logs, probes) nor how it differs from the sibling k8s_describe_pod or k8s_read_pod_logs, which an agent must choose between.

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 alternatives such as k8s_describe_pod, k8s_exec_pod, or k8s_read_pod_logs. The agent is left to guess whether this is a superset, a wrapper, or a different operation entirely.

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