Skip to main content
Glama
ranson21

kube-diagnostics-mcp

by ranson21

find_slow_traces

Identify slowest traces for a Kubernetes service to diagnose performance issues. If no tracing provider is configured, receive setup guidance.

Instructions

Slowest traces for a service from the tracing provider (none configured yet: returns guidance).

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it responsibly discloses a key behavior: if no tracing provider is configured, the tool returns guidance instead of actual traces. This goes beyond the surface meaning and helps set expectations, though it doesn't specify what the guidance 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?

The description is a single, front-loaded sentence that states the core purpose first and appends the caveat in parentheses. No filler words or redundant phrases.

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

Completeness2/5

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

The tool has no annotations, no output schema, and 5 parameters, but the description does not explain expected return format, possible values of 'guidance', or the semantics of limit and min_duration_ms. An agent would need to call it blindly or rely on the schema, which is not sufficient for a complex tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds little beyond the schema. It mentions 'for a service', which duplicates the service parameter description, and 'slowest' hints at ordering, but does not explain limit, window, min_duration_ms, or namespace. With schema coverage at 60% and no descriptions for some params, the description doesn't compensate for the undocumented ones.

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 states a specific verb-resource pairing: it returns the slowest traces for a given service from the tracing provider. It also communicates the current state (none configured), which makes the tool's behavior clear even if siblings are not explicitly named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool over siblings like get_trace or diagnose_slow_requests. The parenthetical about returning guidance is more of a behavioral caveat than a usage rule, and no conditions or exclusions are provided.

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