Skip to main content
Glama

Get Extended Events History

get_extended_events
Read-onlyIdempotent

Retrieve live Kubernetes events merged with an in-memory history buffer and warning/normal counts to keep transient failures visible after API eviction and support post-incident timelines.

Instructions

Retrieve live Kubernetes events merged with KubeOrbit's in-memory historical ring buffer plus warning/normal summary counts.

Retains up to 1,000 recent unique events per cluster in server memory so transient failures remain visible after Kubernetes' ~1-hour API event eviction. Returns cluster_id, namespace, items (capped by limit, 10-1000, default 200), total_events, warning_count, and normal_count. Omit namespace for cluster-wide history.

Use for post-incident timelines, flapping workloads, or when you need warning vs normal event counts. Prefer get_events for strictly live API server events with lower payload size, or get_audit_logs for portal-level user actions.

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_extended_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of merged live + historical ring-buffer events to return, ordered newest-first (10-1000, default 200).
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
itemsNoMerged live and in-memory ring-buffer Kubernetes events ordered newest-first.
namespaceNoScoped namespace, or null when cluster-wide.
cluster_idNoCluster identifier queried.
normal_countNoNumber of Normal-type events in the matched set.
total_eventsNoTotal matching events retained in the ring buffer before `limit` truncation.
warning_countNoNumber of Warning-type events in the matched set.

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 merged live + historical ring-buffer events to return, ordered newest-first (10-1000, default 200)."
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / minimum
      Added value: +10
    • 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"
      +    },
      +    "items": {
      +      "description": "Merged live and in-memory ring-buffer Kubernetes events ordered newest-first.",
      +      "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"
      +    },
      +    "normal_count": {
      +      "default": 0,
      +      "description": "Number of Normal-type events in the matched set.",
      +      "title": "Normal Count",
      +      "type": "integer"
      +    },
      +    "total_events": {
      +      "default": 0,
      +      "description": "Total matching events retained in the ring buffer before `limit` truncation.",
      +      "title": "Total Events",
      +      "type": "integer"
      +    },
      +    "warning_count": {
      +      "default": 0,
      +      "description": "Number of Warning-type events in the matched set.",
      +      "title": "Warning Count",
      +      "type": "integer"
      +    }
      +  },
      +  "title": "ExtendedEventsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds material behavior: a 1,000-event per-cluster in-memory ring buffer that survives Kubernetes' ~1-hour API eviction, newest-first ordering, and a cap applied by limit. These are operational facts an agent cannot infer from annotations or schema.

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?

Three well-structured paragraphs: what it is, what it returns, when to use it. Front-loaded and scannable. Minor waste in repeating the limit range and default that the schema already documents, plus a return-field enumeration that the output schema covers.

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 three parameters, full schema coverage, rich annotations, and an output schema, the description covers everything needed: retention semantics, scoping, ordering, and routing to siblings. No behavioral gap remains for an agent to call it correctly.

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

Parameters4/5

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

Schema coverage is already 100%, so baseline is 3; the description earns extra credit by explaining the semantic effect of omitting namespace (cluster-wide history) and that limit governs the merged live+historical set. The 10-1000/default 200 restatement duplicates the schema, so it does not clear a 5.

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?

Opens with a specific verb+resource ("Retrieve live Kubernetes events merged with KubeOrbit's in-memory historical ring buffer") and explicitly distinguishes itself from get_events (live API-only) and get_audit_logs (portal actions). An agent can pick this tool without opening the 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?

Names concrete scenarios (post-incident timelines, flapping workloads, warning-vs-normal counts) and gives explicit alternatives with the condition that selects each: get_events for live-only low-payload reads, get_audit_logs for user actions. Both when-to-use and when-not-to-use are present.

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