describe-pod
Retrieve detailed information about a specific Kubernetes pod, including its status, configuration, and resource usage, to monitor and troubleshoot containerized applications.
Instructions
Describe details of a Kubernetes pod
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | The namespace of the pod (optional, defaults to current context namespace) | |
| pod | Yes | The name of the pod to describe |
Implementation Reference
- server.js:1528-1536 (handler)Handler for 'describe-pod' tool: runs 'kubectl describe pod' command with optional namespace to retrieve detailed pod information.case "describe-pod": { const { pod, namespace } = args; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `kubectl describe pod ${pod} ${nsArg}`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No pod details found" }] }; }
- server.js:178-194 (schema)Input schema for 'describe-pod' tool defining required 'pod' name and optional 'namespace'.name: "describe-pod", description: "Describe details of a Kubernetes pod", inputSchema: { type: "object", properties: { pod: { type: "string", description: "The name of the pod to describe" }, namespace: { type: "string", description: "The namespace of the pod (optional, defaults to current context namespace)" } }, required: ["pod"] } },
- server.js:1392-1394 (registration)Registration of all tools list handler, which includes 'describe-pod' in the tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });