Skip to main content
Glama

Get Live Kubernetes Events

get_events
Read-onlyIdempotent

Fetch live Kubernetes events for a cluster or namespace, newest first, to quickly check current warnings before they age out of the API server.

Instructions

Fetch live Kubernetes API events currently retained by the cluster, ordered newest-first.

Returns cluster_id, namespace, count, and items (capped by limit, 1-500, default 100). Reflects only events still live in the cluster API server (typically ~1 hour before Kubernetes garbage collection). Omit namespace for cluster-wide events.

Use for quick checks of current cluster or namespace warnings. Prefer get_extended_events when investigating older incidents that may have aged out of Kubernetes' 1-hour event TTL or when you need warning_count/normal_count statistics, or get_audit_logs for KubeOrbit portal audit entries.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cluster_id": "<cluster_id>"
    },
    "name": "get_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of live Kubernetes events to return, ordered newest-first (1-500, default 100).
namespaceNoOptional Kubernetes namespace name (1-63 chars) to scope results to a single namespace. Omit or pass null to query across all namespaces in the cluster.
cluster_idYesUnique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging').

Output Schema

NameRequiredDescriptionDefault
countNoNumber of live events returned.
itemsNoLive Kubernetes events ordered newest-first with type (Normal/Warning), reason, message, involved object, count, and timestamps.
namespaceNoScoped namespace, or null when cluster-wide.
cluster_idNoCluster identifier queried.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.1.1
    • addedInput schema / properties / cluster_id / description
      Added value: +"Unique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging')."
    • addedInput schema / properties / cluster_id / maxLength
      Added value: +63
    • addedInput schema / properties / cluster_id / minLength
      Added value: +1
    • addedInput schema / properties / cluster_id / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of live Kubernetes events to return, ordered newest-first (1-500, default 100)."
    • addedInput schema / properties / limit / maximum
      Added value: +500
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / namespace / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 63,
      +    "minLength": 1,
      +    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / namespace / description
      Added value: +"Optional Kubernetes namespace name (1-63 chars) to scope results to a single namespace. Omit or pass null to query across all namespaces in the cluster."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "count": {
      +      "default": 0,
      +      "description": "Number of live events returned.",
      +      "title": "Count",
      +      "type": "integer"
      +    },
      +    "items": {
      +      "description": "Live Kubernetes events ordered newest-first with type (Normal/Warning), reason, message, involved object, count, and timestamps.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Items",
      +      "type": "array"
      +    },
      +    "namespace": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Scoped namespace, or null when cluster-wide.",
      +      "title": "Namespace"
      +    }
      +  },
      +  "title": "EventsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds behavior beyond them: the ~1-hour Kubernetes garbage-collection window, newest-first ordering, the limit cap, and the fact that only events still live in the API server are returned. This is exactly the operational context an agent needs to avoid misinterpreting stale or empty results.

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 first sentence is front-loaded with purpose and ordering, followed by return shape, retention caveat, and routing guidance in a logical order. There is minor redundancy in restating the limit range and default that the schema already declares, but no wasted paragraphs.

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

Completeness5/5

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

Given an output schema and rich annotations, the description covers everything else an agent needs: retention window, ordering, scoping behavior, and sibling alternatives. No relevant calling detail appears to be missing.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all three parameters including the 1-500 limit and the namespace pattern. The description reinforces the key semantics ('Omit namespace for cluster-wide events') but adds little beyond what the structured fields already state, so the baseline 3 applies.

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 states a specific verb and resource ('Fetch live Kubernetes API events') along with scope, ordering (newest-first), and retention semantics. It explicitly distinguishes itself from get_extended_events and get_audit_logs, so an agent can identify the right tool without opening any schema.

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

Usage Guidelines5/5

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

It gives a positive use case ('quick checks of current cluster or namespace warnings') and names the exact conditions that should route the agent elsewhere: older incidents aged out of the 1-hour TTL, or the need for warning_count/normal_count statistics, or portal audit entries. That is explicit when/when-not/alternatives guidance.

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