Skip to main content
Glama
claude-log-analyzer

claude-log-analyzer

get_events

Fetch Kubernetes events for a namespace or cluster-wide to spot OOM kills, scheduling failures, and pod issues; filter by event type, time window, and involved object.

Instructions

Fetch Kubernetes events (Warning/Normal) for a namespace or cluster-wide. Useful for spotting OOM kills, scheduling failures, and pod issues.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
eventTypeNoEvent type filter (default: all)
namespaceNoNamespace (omit for cluster-wide)
sinceMinutesNoEvents from last N minutes (default: 60)
involvedObjectKindNoFilter by object kind (Pod, Deployment, Node)
involvedObjectNameNoFilter by object name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. "Fetch" implies a read-only, non-destructive operation, but it does not state permissions needed, the fact that Kubernetes events expire (which materially affects results), any result limits, or the response shape — all meaningful gaps for a fan-out listing tool.

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

Conciseness5/5

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

Two sentences, no filler, with the scope statement front-loaded before the diagnostic use cases. Every clause earns its place.

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

Completeness3/5

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

There is no output schema and no annotations, and the tool has five filter parameters. The description covers what the tool returns conceptually (event objects by type/scope) but omits return ordering, event retention, and how combined filters interact, leaving a modest completeness gap.

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 description coverage is 100%, including the enum for eventType and per-parameter defaults, so the baseline is 3. The description only restates the namespace-omission behavior already documented in the schema and adds no new semantics like time-window interaction or kind/name precedence.

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

Purpose4/5

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

The description names a specific verb and resource ("Fetch Kubernetes events") and states both the type scope (Warning/Normal) and target scope (namespace or cluster-wide). That is enough to distinguish it from siblings like get_pod_status or detect_anomalies, but it never explicitly contrasts itself with any of them.

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

Usage Guidelines3/5

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

"Useful for spotting OOM kills, scheduling failures, and pod issues" gives implied usage context but no explicit when-to-use rules, no prerequisites, and no named alternative for cases like log inspection (fetch_pod_logs) or health checks (get_cluster_health).

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