Skip to main content
Glama

top_resources

Read-only

Rank Kubernetes pods, workloads, or nodes by live CPU and memory usage, with pod status, readiness, restarts, and limits. Identify OOMKills, slow services, and uneven node load before checking logs.

Instructions

Use when investigating high CPU, memory pressure, OOMKills, slow services, noisy pods, or uneven node load. Returns live metrics ranked like kubectl top pods|nodes | sort, joined with Kubernetes context: pod status, readiness, restarts, owner workload, requests, and limits. kind=pods ranks individual Pods, kind=workloads aggregates Pods to Deployments/StatefulSets/DaemonSets/Jobs, and kind=nodes ranks Nodes. Use before reading logs when the symptom mentions CPU, memory, GC, OOM, latency, or load.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNowhat to rank: pods (default), workloads, or nodes
sortNosort by cpu (default) or memory
limitNomax rows returned, default 20, max 100
namespaceNofilter pods/workloads to a namespace. Required for namespace-restricted users unless they have cluster-wide namespace access.
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds useful behavioral context: it returns live metrics, joins with Kubernetes context, and explains that kind=workloads aggregates Pods from Deployments/StatefulSets/DaemonSets/Jobs. It does not contradict annotations, and while it omits rate limits or auth, the read-only nature is well-covered.

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

Conciseness5/5

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

The description is well-structured and front-loaded with the most critical usage guidance. Sentences are compact and information-dense; every clause earns its place, covering when to use, what it returns, and how the kind parameter behaves, without redundancy.

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

Completeness5/5

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

Given the tool has no output schema, the description adequately explains the return shape (ranked metrics with pod status, readiness, restarts, owner workload, requests, limits). It also covers all kind variants and parameter behavior, making it complete for an agent to select and invoke the tool successfully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of parameters with descriptions, establishing a strong baseline. The description adds further semantic value by explaining how 'kind=workloads' aggregates Pods to specific workload types, which is not fully captured in the parameter description. This goes beyond the schema's basic field definitions.

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

Purpose5/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: 'Returns live metrics ranked like kubectl top pods|nodes | sort' and explicitly differentiates from siblings by positioning it as a pre-log investigation tool. It clearly defines the three kind variants, making its purpose unambiguous.

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

Usage Guidelines5/5

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

The description opens with explicit use cases ('Use when investigating high CPU, memory pressure, OOMKills, slow services, noisy pods, or uneven node load') and provides an alternative guidance ('Use before reading logs when the symptom mentions CPU, memory, GC, OOM, latency, or load'). This tells the agent when to choose this tool over log-focused siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/skyhook-io/radar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server