Skip to main content
Glama

get_top_consumers

Read-only

Identify resource-heavy containers by ranking them by CPU or memory consumption over a chosen time period.

Instructions

Get containers ranked by resource consumption (CPU or memory), useful for identifying resource-heavy containers.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of containers to return, default 10, at most 20
metricYesResource metric to sort by: cpu or memory
periodNoTime period for ranking: current (live), or one of 1h, 6h, 24h, 7d, 30d, 90d. How far back a history window may go depends on the edition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds one behavioral fact beyond the structured fields — that results are ranked/ordered by the chosen metric — but says nothing about the 20-result cap being enforced, the edition-dependent history window, or what fields come back.

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 the ranking behavior and metric options up front. The trailing 'useful for...' clause is mildly redundant with the stated purpose but still adds usage color.

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 three-parameter read tool this is close to adequate, but with no output schema the description could have described the shape of a returned ranking entry (container identity plus consumption value) and noted the result cap behavior rather than leaving that only in a parameter description.

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 100%: metric, limit, and period are all fully documented in the schema, including the default and cap on limit. The description only echoes the cpu/memory choice and adds nothing about limit or the period windows, so baseline 3 applies.

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 with the ranking behavior made explicit: 'Get containers ranked by resource consumption (CPU or memory)'. This separates it from list_containers and get_container, though it never names those siblings directly.

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 clause 'useful for identifying resource-heavy containers' implies a use case (triage/capacity work) but gives no explicit when-not guidance or pointer to alternatives such as get_container for a single container's detail or list_containers for a flat inventory.

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