Skip to main content
Glama
claude-log-analyzer

claude-log-analyzer

analyze_service

Analyze a Kubernetes service by combining pod status, logs, metrics, events, and anomaly detection into one view to support root-cause investigation.

Instructions

Deep dive on a specific service. Combines pod status, logs, metrics, events, and anomaly detection into a single view.

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>",
      "serviceName": "<serviceName>"
    },
    "name": "analyze_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoAnalysis mode (default: both)
namespaceYesKubernetes namespace
serviceNameYesService/deployment name (used as label app=<name>)
timeWindowMinutesNoTime window in minutes (default: from config)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does add real behavioral information by listing the five data sources combined into one view, but it says nothing about read-only semantics, cost/latency of fanning out across five sources, behavior when the service is missing, or what the combined output contains.

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 short sentences with zero filler: the resource is front-loaded and the second sentence enumerates exactly what is combined. Nothing is repeated from the schema or wasted.

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?

For a read-only aggregate tool with no output schema and no annotations, the description conveys the essential shape of the result (a single view of five signal types). It falls short only on operational details such as relative cost versus the granular siblings and any failure behavior.

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%, and every parameter (namespace, serviceName, mode enum, timeWindowMinutes) is documented in the schema, including the app=<name> label convention and defaults. The description adds no parameter-level meaning beyond that, so the baseline of 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?

The description names a specific resource (a specific service) and a specific behavior: it aggregates pod status, logs, metrics, events, and anomaly detection into one view. That clearly separates it from the granular siblings (fetch_pod_logs, get_pod_status, get_resource_metrics), though it never names any sibling 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?

Usage is only implied: 'Deep dive on a specific service ... into a single view' suggests this is the aggregate alternative to making several individual calls, but the description never says when to prefer it over fetch_pod_logs, get_pod_status, or detect_anomalies, and offers no guidance on choosing a mode or time window.

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