Skip to main content
Glama

List pods

k8s_list_pods
Read-onlyIdempotent

List Kubernetes pods in a specific namespace or across all namespaces, with optional label filtering and context selection.

Instructions

List pods in a namespace, or in every namespace with all_namespaces.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "k8s_list_pods"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered without prose. The description adds only the namespace scoping behavior; it says nothing about cluster permissions required, result size/pagination for all-namespace listings, or filtering side effects, which are exactly the gaps annotations do not fill.

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?

One sentence, front-loaded with the verb and resource, and zero filler. It is arguably under-sized for a four-parameter tool, since the space saved leaves label selection unexplained.

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 read-only list tool with full annotation coverage and no output schema, a short description is defensible. However, the undocumented label_selector and the absence of any note about output shape or scale for all-namespaces calls leave an agent guessing on the two things most likely to go wrong.

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 only 25% (just the context parameter), so the description carries real weight for the rest. It explains namespace and all_namespaces semantics but leaves label_selector completely undocumented in both schema and description, which is the most behaviorally significant filter here.

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?

States a specific verb and resource ("List pods") plus the two scoping modes (single namespace vs. all namespaces), so the core operation is unambiguous. It doesn't distinguish itself from pod-adjacent siblings such as k8s_top_pods or k8s_list_containers, but the purpose itself is clear.

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 the selection rule between the two scope modes (set all_namespaces to cover every namespace), which is a usable when-to-use hint. It offers no guidance on when to prefer related tools, no prerequisites, and no mention of when reading a whole cluster is undesirable.

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