Skip to main content
Glama

Inspect container

k8s_inspect_container

Inspect a Kubernetes container by ID to retrieve its detailed configuration and runtime status, with an optional named context for multi-context pools.

Instructions

Invoke the inspect_container 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": {
      "container_id": "<container_id>"
    },
    "name": "k8s_inspect_container"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, and destructiveHint=false, so the basic safety profile is available structurally. The description adds no behavioral context whatsoever — nothing about what the inspection surfaces, whether it contacts a live cluster, or what permissions are needed. Not contradictory, but entirely non-contributory.

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?

It is a single sentence, but the brevity is under-specification rather than efficiency. There is no front-loaded statement of what the operation does or what it returns.

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 itself is simple (two params, one required, no output schema), so a short description could suffice — but the agent still cannot tell what inspecting a container yields or how this differs from docker/podman equivalents. For a multi-runtime tool family, this leaves the selection decision unsupported.

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 coverage is only 50%: the context parameter is well documented in the schema, but container_id has no description anywhere. The description does nothing to compensate for that gap, leaving the primary required parameter semantically undefined beyond its name.

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?

"Invoke the inspect_container operation" merely restates the tool name in prose form. It gives no indication of what is actually inspected, what system state is examined, or how it differs from the many sibling inspect tools (docker_inspect_container, podman_inspect_container, k8s_inspect_node, etc.).

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 reference to any alternative. With roughly a dozen near-identical inspect siblings across docker, podman, and k8s, this is the exact case where routing guidance is essential, and none is provided.

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