Skip to main content
Glama

describe_pod

Retrieve detailed information about a specific Kubernetes pod, including its configuration, status, and events, to diagnose issues or verify deployment details.

Instructions

Describe a specific pod

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pod_nameYes
namespaceNodefault

Implementation Reference

  • The handler function decorated with @mcp.tool() that implements the describe_pod tool by executing the 'kubectl describe pod' command.
    @mcp.tool() async def describe_pod(pod_name: str, namespace: str = "default") -> dict: """Describe a specific pod""" try: cmd = ["kubectl", "describe", "pod", pod_name, "-n", namespace] result = subprocess.run(cmd, capture_output=True, text=True, check=True) return {"description": result.stdout} except subprocess.CalledProcessError as e: return {"error": f"Failed to describe pod: {str(e)}"}
  • kubernetes.py:45-45 (registration)
    Registers the describe_pod tool using the FastMCP decorator.
    @mcp.tool()

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/abhijeetka/mcp-k8s-server'

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