Skip to main content
Glama

describe_pod

Retrieve detailed information about a specific pod in a Kubernetes cluster using pod name and namespace, enabling efficient cluster management.

Instructions

Describe a specific pod

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNodefault
pod_nameYes

Implementation Reference

  • The handler function for the 'describe_pod' tool. It is decorated with @mcp.tool() which also serves as the registration. Executes 'kubectl describe pod' to retrieve detailed information about the specified pod and returns it as a dictionary.
    @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)}"}

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