Skip to main content
Glama

Inspect service

k8s_inspect_service

Inspect a Kubernetes service by ID, optionally within a named multi-context pool, to diagnose configuration or verify workload state.

Instructions

Invoke the inspect_service operation.

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_id": "<service_id>"
    },
    "name": "k8s_inspect_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.
service_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, so the basic safety profile is covered and the bar is lower. The description adds nothing on top - no statement of what inspection surfaces, whether cluster auth/credentials are needed for the open-world call, or why an 'inspect' operation is flagged read-only false, leaving that tension unresolved.

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

Conciseness2/5

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

One short sentence with no wasted words, but it is under-specified rather than concise - it spends its only clause restating the operation name. Nothing is front-loaded because there is no substantive content to front-load.

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

Completeness1/5

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

For a two-parameter, open-world, non-read-only tool with no output schema and half its parameters undocumented, the description supplies none of the missing information. An agent cannot determine what data comes back, what service_id format is expected, or what side effects an open-world non-read-only 'inspect' may have.

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?

With only 50% schema coverage, the description is expected to compensate, but it explains neither parameter. The required service_id has no description in the schema and no clarification here (name, namespace/name pair, or UID is left ambiguous), and the context parameter's pool semantics are carried solely by the schema text.

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

Purpose2/5

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

The description 'Invoke the inspect_service operation' is a tautology that restates the title and tool name without adding a specific verb, resource scope, or object of inspection. It does not distinguish this tool from the many near-identical siblings (docker_inspect_service, podman_inspect_service, k8s_get_native_service) or indicate what 'inspect' actually returns.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no exclusions, and no mention of any alternative among the dense sibling set (k8s_debug_service, k8s_get_native_service, cm_k8s_networking_get_k8s_service). The agent is given nothing to route on beyond the word 'inspect'.

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