Skip to main content
Glama
mcp-root-cause-detective

mcp-root-cause-detective

by tarihte1110

analyze_docker_containers

Read-onlyIdempotent

Collects logs from running Docker containers and correlates cross-service errors within a configurable time window to pinpoint root causes.

Instructions

Çalışan Docker konteynerlerinin loglarını toplar ve servisler arası hataları ilişkilendirir.

Args: container_names: İncelenecek konteynerler (boşsa çalışan tüm konteynerler taranır). tail_lines: Her konteynerden alınacak son log satırı sayısı. window_seconds: Korelasyon zaman penceresi (saniye). since: İsteğe bağlı Docker zaman filtresi (ör. '15m', '1h', '2026-12-03T02:55:00Z').

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": "analyze_docker_containers"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNo
tail_linesNo
window_secondsNo
container_namesNo

Output Schema

NameRequiredDescriptionDefault
errorNo
warningsNo
analysis_idNoAşamalı inceleme (drill-down) araçlarında kullanılacak oturum kimliği.
error_spikesNo
sources_scannedNo
total_errors_foundNo
trace_correlationsNo
stacktrace_insightsNo
timed_entries_countNo
total_lines_scannedNo
root_cause_hypothesesNo
timeline_correlationsNo
unique_error_clustersNo
untimed_entries_countNo
mermaid_sequence_diagramNoÇoklu servis olay akışını görselleştiren Mermaid sequenceDiagram metni.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond them: an empty container_names value triggers a scan of all running containers, and window_seconds defines the correlation span. Return format is omitted, but an output schema exists so that is not a gap.

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 purpose sentence is front-loaded and the parameter block is easy to scan, with no filler prose. The Args section repeats each parameter name rather than embedding semantics in the main sentence, which is slightly verbose but standard and readable.

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

Completeness4/5

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

With four optional parameters, all four documented in the description, full annotation coverage, and a present output schema, an agent has what it needs to invoke the tool correctly. Only the missing ranges/defaults rationale for the numeric parameters keeps it from being fully complete.

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 description coverage is 0%, so the description carries the full burden and largely meets it: it explains each of the four parameters, including the null/default behavior for container_names and an explicit format example ('15m', '1h', ISO timestamp) for since. It does not explain acceptable ranges for tail_lines or window_seconds, leaving a small gap.

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 verb and resource pair: collects logs from running Docker containers and correlates errors between services. The Docker container scope implicitly distinguishes it from sibling tools like analyze_kubernetes_pods and analyze_log_files, but no sibling is named explicitly.

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?

The stated behavior (cross-service error correlation from container logs) implies a debugging use case, but the description never says when to prefer this over analyze_log_files, analyze_kubernetes_pods, or inspect_error_cluster, nor does it state any exclusions or prerequisites.

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