Skip to main content
Glama

Top pods

k8s_top_pods

Retrieve Kubernetes pod CPU and memory usage from the metrics server to identify high resource consumers in a namespace or context.

Instructions

Get resource usage for pods using metrics server.

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_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.7/5.0
Behavior2/5

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

The description conveys only the data source (metrics server); it says nothing about failure modes when metrics are unavailable, whether all namespaces are scanned by default, or what the output ordering means. There is also unaddressed tension: the wording 'Get' implies a pure read, while the annotations declare readOnlyHint=false, and the description does nothing to reconcile that for the agent.

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 front-loaded sentence with no wasted words, and the data source is included where it matters most. It is arguably too terse for the gaps it leaves, but nothing in it is redundant.

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 whose usefulness depends on an optional add-on (metrics server) and on namespace scoping defaults, the description leaves both unexplained, and there is no output schema to fall back on. Annotations exist but are sparse and partly inconsistent with the read-like wording, so the description carries more burden than it does.

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 but 'namespace' is not, and the description never mentions either parameter, its null default, or that omitting namespace implies all namespaces. The description therefore does not compensate for the undocumented parameter.

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?

The description states a specific verb and resource ('Get resource usage for pods') and adds the data source ('using metrics server'), so the agent knows exactly what is returned. It does not differentiate from near-identical siblings such as k8s_get_top_pods or k8s_top_nodes, which is the one remaining clarity gap.

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 statement of prerequisites (metrics-server must be installed and reporting), and no direction on choosing this over k8s_get_top_pods or k8s_list_pods. The agent must infer the 'resource usage' vs 'pod listing' distinction from the name alone.

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