Skip to main content
Glama

Get top pods

k8s_get_top_pods
Read-onlyIdempotent

Retrieve Kubernetes pods ranked by resource usage to identify high-CPU or high-memory workloads and diagnose capacity issues.

Instructions

Get top pods by resource usage.

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_get_top_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

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 already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds essentially nothing beyond them: it does not say what is returned (CPU vs memory, whether it is a ranked list, how many entries), whether it requires metrics infrastructure, or how the default namespace behaves. "By resource usage" hints at ordering but is not developed.

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?

One short, front-loaded sentence with zero padding, but that brevity comes from under-specification rather than disciplined editing. There is no structure to speak of and no second sentence carrying the information the tool needs.

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?

With no output schema, the description should convey what an agent gets back — a ranked list of pods, presumably with CPU/memory figures, and any implicit limits or scope. It also omits the ambiguity with sibling top/metrics tools. For a simple read-only tool with annotations this is not fatal, but it falls short of complete.

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 50%: 'context' is documented in the schema while 'namespace' has no description at all. The tool description supplies no parameter meaning — it does not explain the namespace default (all namespaces vs current vs default) or how 'context' interacts with the multi-context pool, so the coverage gap goes uncompensated.

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 specific verb and resource ("Get top pods") and adds the ranking basis ("by resource usage"), so the basic action is understandable. However, it does nothing to separate this tool from near-identical siblings such as k8s_top_pods, k8s_get_pod_metrics, and k8s_get_pod_resource_usage, leaving an agent unable to tell which one to pick from the description 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, no stated preconditions (e.g. metrics-server availability), and no exclusions or named alternatives. The agent must infer usage from the tool name and the surrounding catalog.

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