Skip to main content
Glama

Kubernetes Tools MCP Server

by BenedatLLC

get_pod_events

Retrieve detailed events for a specific Kubernetes pod to monitor and troubleshoot its behavior. Specify the pod name and namespace for targeted insights into pod activity and issues.

Instructions

Get events for a specific Kubernetes pod. This is equivalent to the kubectl command: `kubectl get events -n NAMESPACE --field-selector involvedObject.name=POD_NAME,involvedObject.kind=Pod` Parameters ---------- pod_name : str Name of the pod to retrieve events for. namespace : str, optional Namespace of the pod (default is "default"). Returns ------- list of EventSummary List of events associated with the specified pod. Each EventSummary has the following fields: last_seen : Optional[datetime.datetime] Timestamp of the last occurrence of the event (if available). type : str Type of the event. reason : str Reason for the event. object : str The object this event applies to. message : str Message describing the event. Raises ------ K8sConfigError If unable to initialize the K8S API. K8sApiError If the API call to list events fails.

Input Schema

NameRequiredDescriptionDefault
namespaceNodefault
pod_nameYes

Input Schema (JSON Schema)

{ "properties": { "namespace": { "default": "default", "title": "Namespace", "type": "string" }, "pod_name": { "title": "Pod Name", "type": "string" } }, "required": [ "pod_name" ], "title": "get_pod_eventsArguments", "type": "object" }
Install Server

Other Tools from Kubernetes Tools MCP Server

Related Tools

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/BenedatLLC/k8stools'

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