Skip to main content
Glama

Debug service

k8s_debug_service

Debug a Kubernetes service by gathering diagnostic information like logs and status, using the service name and namespace to identify issues.

Instructions

Debug a service by gathering diagnostic information.

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": {
      "service_name": "<service_name>",
      "namespace": "<namespace>"
    },
    "name": "k8s_debug_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
namespaceYes
service_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.4/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, which is notable for a "debug" tool: it hints the call may touch a live cluster or execute probing actions rather than purely read state. The description does nothing with this — it doesn't say whether it runs anything inside pods, whether it can affect the workload, how long it may take, or what permissions are needed. With no output schema, the return content is also undisclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no padding, so nothing is wasted, but the brevity reflects under-specification rather than economy. There is no structural front-loading of scope, returns, or caveats because there is essentially no content beyond the title restated.

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?

For a tool with two required identifiers, a non-readonly annotation profile, and no output schema, the definition supplies far too little: the agent cannot predict what diagnostics come back or what the call costs. The description adds almost nothing beyond the title and leaves the required parameters undocumented.

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?

Schema description coverage is 33%: only the optional `context` parameter is documented in the schema. `service_name` and `namespace` — both required — have no descriptions anywhere, and the tool description doesn't compensate by explaining expected formats, default namespace behavior, or whether the service must already exist.

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

Purpose3/5

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

The description names a verb and resource ("Debug a service") but the operative clause, "gathering diagnostic information," is vague: it never says what diagnostics are collected (events, endpoints, pod health, connectivity) or what the agent receives. It also fails to distinguish this from closely named siblings such as k8s_inspect_service or k8s_debug_pod, so an agent cannot reliably pick it from the catalog alone.

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 when-to-use guidance at all: no preconditions, no statement of what failure mode this tool diagnoses, and no mention of alternatives. The name implies a debugging context, but nothing tells the agent when to prefer this over k8s_inspect_service or k8s_debug_deployment.

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

Deploy Server

Other Tools