claude-log-analyzer
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| K8S_MODE | No | Default mode: logs, metrics, or both. | both |
| KUBECONFIG | No | Path to kubeconfig file. | ~/.kube/config |
| K8S_CONTEXT | No | Kubernetes context to use. | current-context |
| K8S_TIME_WINDOW | No | Default time window in minutes. | 60 |
| K8S_LOG_MAX_LINES | No | Max log lines per pod. | 500 |
| K8S_DEFAULT_NAMESPACE | No | Default namespace. | default |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_namespacesA | List all Kubernetes namespaces in the cluster. Use this first to discover available namespaces. |
| fetch_pod_logsA | Fetch and filter pod logs. Intelligently filters noise (health checks, probes) and extracts severity. Returns summarized results to minimize token usage. |
| get_pod_statusA | Get detailed pod status including phase, conditions, container states, restart counts, and termination reasons. |
| get_resource_metricsA | Fetch CPU and memory usage via Kubernetes Metrics API. Returns usage with percentage against limits/requests. Requires metrics-server. |
| get_eventsA | Fetch Kubernetes events (Warning/Normal) for a namespace or cluster-wide. Useful for spotting OOM kills, scheduling failures, and pod issues. |
| get_cluster_healthA | Get a high-level cluster health overview: pod counts, problem pods, recent warnings. Good starting point for investigation. |
| detect_anomaliesA | Run anomaly detection on a namespace. Detects CPU/memory spikes, error bursts, restart storms, OOM kills, event floods. Returns evidence-backed findings. |
| analyze_serviceA | Deep dive on a specific service. Combines pod status, logs, metrics, events, and anomaly detection into a single view. |
| get_root_cause_analysisB | Full root cause analysis: fetches all data, detects anomalies, correlates events, and exports an evidence-backed report. This is the main analysis tool. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Most tools have distinct scope: list_namespaces, fetch_pod_logs, get_pod_status, get_resource_metrics, and get_events each target a specific resource/action. The analysis layer overlaps somewhat — analyze_service, detect_anomalies, get_cluster_health, and get_root_cause_analysis all bundle similar underlying data, though descriptions differentiate by scope (single service vs namespace vs whole cluster vs full report).
All nine tools follow a clean snake_case verb_noun pattern (list_namespaces, fetch_pod_logs, get_pod_status, detect_anomalies). Verb choices (list/get/fetch/analyze/detect) are semantically consistent with the operation type, making the set predictable.
Nine tools is well within the sweet spot for a Kubernetes diagnostic server. Each tool covers a distinct layer (discovery, raw data retrieval, aggregation, analysis) without obvious redundancy.
There is a notable discovery gap: list_namespaces exists, but no list_pods, list_services, or list_deployments, so analyze_service and get_pod_status require names the agent has no reliable way to enumerate. Read-only diagnostic coverage is otherwise solid (logs, metrics, events, health, anomalies, RCA), but lifecycle/workload discovery operations are missing.