Skip to main content
Glama
ranson21

kube-diagnostics-mcp

by ranson21

summarize_access_log

Summarize proxy access logs to identify client timeouts, upstream latency, scanner activity, and sensitive data exposure using aggregated status classes and latency percentiles.

Instructions

[probe] Proxy access log aggregated: status classes, top paths with p50/p95, per-upstream latency and 504s, 499s (clients giving up), proxy-vs-upstream gap, scanner-like paths, sensitive data in the log. Never raw lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sinceNoTime window like 15m, 2h, 1d (default 15m)
serviceYesWorkload name as you would say it: a Deployment, StatefulSet, DaemonSet, Service, or Pod name
namespaceNoKubernetes namespace (required: no default configured; see list_namespaces)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It states the tool returns only aggregated data, lists the computed analytical dimensions, and sets a clear constraint with 'Never raw lines.' It could add edge-case behavior, but it is transparent about the main behavioral contract.

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?

The description is a single front-loaded sentence that packs the operation, output facets, and a key exclusion into a compact form. There is no filler.

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 no output schema, the description usefully tells the agent what the summary will include and what it will never return. It could be more explicit about the response structure or when to prefer this over summarize_log_errors, but it gives enough context for correct invocation.

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 the baseline applies. The description does not add parameter-specific semantics beyond the schema, but it does not need to since since, service, and namespace are already well documented in the input schema.

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

Purpose5/5

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

The description clearly names the resource (proxy access log) and the operation (aggregated summary), and enumerates concrete outputs such as status classes, p50/p95 top paths, per-upstream latency, and 504/499 counts. 'Never raw lines' explicitly distinguishes it from raw log tools like get_logs.

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 description implies use when an aggregated, analytical view of proxy access logs is neededestrategy. 'Never raw lines' hints that raw-line retrieval is out of scope, but it does not explicitly name alternatives or give a when-not-to-use condition, leaving the agent to infer the choice.

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