Skip to main content
Glama

describe-pod

Retrieve detailed information about a specific Kubernetes pod, including its configuration, status, and resource specifications.

Instructions

Describe details of a Kubernetes pod

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
podYesThe name of the pod to describe
namespaceNoThe namespace of the pod (optional, defaults to current context namespace)

Implementation Reference

  • Handler that runs `kubectl describe pod <pod> [-n <namespace>]` to retrieve detailed pod information and returns the output.
    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" }]
      };
    }
  • Tool schema defining input parameters: 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 including 'describe-pod' via ListToolsRequestSchema handler, which returns the static tools array.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { tools };
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekaranpargaie/kube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server