Skip to main content
Glama
kubeopsai

k8s-telemetry-mcp

by kubeopsai

get_k8s_events

Retrieve Kubernetes events to diagnose why pods are pending, OOMKilled, or CrashLoopBackOff. Filter by namespace, pod, event type, and recent timeframe.

Instructions

Get Kubernetes events for a namespace or pod. Answers 'why is my pod pending/OOMKilled/CrashLoopBackOff?' Requires rbac.enabled=true in Helm values.

Args: namespace: Kubernetes namespace pod_name: Filter events for a specific pod (optional) event_type: Filter by 'Warning' or 'Normal' (optional) timeframe_minutes: How far back to look (1-1440) limit: Maximum events to return (1-500)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
pod_nameNo
namespaceNodefault
event_typeNo
timeframe_minutesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.2.6

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry behavioral disclosure. It does reveal the RBAC prerequisite and filtering behavior, but it does not go into ordering, event expiration, empty-result behavior, or any side effects. 'Get' implies a read, but the description could be richer about operational constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose, followed by a concise use-case statement and a necessary prerequisite. The Args list is clear and each line adds value, though the format is slightly list-heavy rather than prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given five optional parameters, no annotations, and an output schema, the description covers the key invocation needs: every parameter is explained, the target use case is stated, and the RBAC requirement is disclosed. It stops short of describing fallback behavior or output semantics, but the output schema helps close that gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, yet the description documents every parameter with meaning and bounds: namespace scope, pod_name as a filter, event_type with allowed values, timeframe 1-1440, and limit 1-500. This fully compensates for the schema's absence of per-parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource pairing ('Get Kubernetes events') and immediately scopes to namespace or pod. The phrase 'why is my pod pending/OOMKilled/CrashLoopBackOff?' clarifies the diagnostic intent and distinguishes it from sibling log and metric tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides a clear when-to-use context (pod lifecycle problems) and a hard prerequisite ('Requires rbac.enabled=true'), giving an agent enough to know when this tool is relevant. However, it does not name alternative tools such as query_pod_logs or get_pod_metrics, nor explicitly state when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/kubeopsai/k8s-telemetry-mcp'

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