Skip to main content
Glama

top_resources

Read-only

Rank Kubernetes pods, workloads, or nodes by CPU or memory usage to diagnose performance issues like high CPU, memory pressure, or OOMKills.

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
namespaceNofilter pods/workloads to a namespace. Required for namespace-restricted users unless they have cluster-wide namespace access.
sortNosort by cpu (default) or memory
limitNomax rows returned, default 20, max 100
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description adds rich behavioral context: returns live metrics, includes pod status, readiness, restarts, etc., and explains ranking behavior. No contradictions.

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 concise and well-structured: it starts with usage conditions, explains the output, details the three kinds, and ends with a usage reminder. Every sentence adds value without redundancy.

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

Completeness4/5

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

Given no output schema, the description provides sufficient context about return values (live metrics with Kubernetes context). It covers all key aspects for a read-only ranking tool, though it could explicitly mention the output format.

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?

Schema coverage is 100%, but the description adds valuable context for the 'kind' parameter (explains aggregation for workloads) and the 'namespace' parameter (notes restriction for namespace-limited users). This goes beyond the schema descriptions.

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 clearly states the tool's purpose: investigating high CPU, memory pressure, OOMKills, etc. It specifies the action ('returns live metrics ranked') and the resource types (pods, workloads, nodes), distinguishing it from siblings.

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

Usage Guidelines4/5

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

The description explicitly states when to use the tool ('when investigating high CPU, memory pressure...') and advises using it before reading logs for relevant symptoms. It indirectly indicates when not to use it (e.g., not for logs), but does not explicitly name alternatives, which would raise the score to 5.

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