Skip to main content
Glama
ranson21

kube-diagnostics-mcp

by ranson21

get_endpoints

Identify why a Service has no endpoints by verifying pod selectors, ready endpoints, and targetPort vs containerPort mismatches.

Instructions

Service -> EndpointSlice: matching pods, ready endpoints, targetPort vs containerPort mismatches. Catches the classic 'selector matches nothing'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceNoWorkload 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

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It mentions the kind of information returned (matching pods, ready endpoints, port mismatches) but does not state whether it is read-only, any potential limitations (e.g., no pagination, large result sets), or any side effects. The description is minimal and leaves the agent without a clear safety profile.

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 description is two sentences with no wasted words. It front-loads the core purpose and uses concise Kubernetes terminology. It is efficient and clear, though it could benefit from a structured format for the different pieces of information.

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 simple diagnostic tool with 2 parameters and no output schema, the description provides enough to understand what the tool returns (matching pods, ready endpoints, port mismatches). However, it lacks explicit usage guidance and does not mention any failure modes or interpretation notes, making it adequate but not fully comprehensive for an agent.

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 is 3. The description does not add any extra meaning to the parameters beyond what the schema already provides (service and namespace descriptions are already explicit). It correctly relies on the schema for parameter documentation.

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 states a specific action (Service -> EndpointSlice) and lists the exact data it provides (matching pods, ready endpoints, targetPort vs containerPort mismatches). It clearly distinguishes itself from siblings like get_endpoint_metrics (metrics) and get_pod_status (pod status) by focusing on endpoint slice health and selector matching.

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 usage for diagnosing selector mismatches ("Catches the classic 'selector matches nothing'") but does not explicitly state when to use this tool over alternatives like diagnose_service or get_service_overview. It gives a clear context hint but lacks exclusions or comparisons to sibling tools.

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