Skip to main content
Glama
claude-log-analyzer

claude-log-analyzer

get_root_cause_analysis

Performs full root cause analysis across Kubernetes logs and metrics, detects anomalies, correlates events, and exports an evidence-backed report for incident investigation.

Instructions

Full root cause analysis: fetches all data, detects anomalies, correlates events, and exports an evidence-backed report. This is the main analysis tool.

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": {
      "namespace": "<namespace>"
    },
    "name": "get_root_cause_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoAnalysis mode (default: both)
namespaceYesKubernetes namespace
exportPathNoFile path for exported report (default: ./k8s-rca-report.md)
exportFormatNoReport format: md or txt (default: md)
focusServiceNoOptional service to focus on
timeWindowMinutesNoTime window in minutes (default: from config)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It hints that a report file is produced (the exportPath/exportFormat params confirm this), but it does not say whether the tool is read-only against the cluster, whether it writes to disk by default, how long a 'full' analysis may take, or what permissions the namespace requires.

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?

Two tight sentences, front-loaded with the outcome and then the step sequence. No filler, though 'fetches all data' is vague enough that it slightly undersells what is retrieved.

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?

For a six-parameter orchestration tool that writes an output file and has no output schema, the description is thin on return content (what the evidence-backed report contains) and runtime/cost expectations. It is enough to know broadly what the tool does, but not enough to predict its side effects or output.

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%, so every parameter including defaults and enums is already documented. The description adds no additional meaning about how mode, focusService, or timeWindowMinutes shape the analysis, so the baseline 3 applies.

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?

States a specific composite operation (root cause analysis) and enumerates the steps it performs: data fetch, anomaly detection, event correlation, report export. 'This is the main analysis tool' positions it against the narrower siblings like detect_anomalies and get_events, though it doesn't explicitly name 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?

Calling itself the 'main analysis tool' implies it is the default choice when a full investigation is wanted, but the description never states when to prefer the individual sibling tools (get_events, detect_anomalies, fetch_pod_logs) instead, nor any prerequisites or exclusions.

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