Skip to main content
Glama

top_processes

Read-only

Lists processes sorted by CPU usage over a short sample or resident memory to identify resource-heavy workloads on a Linux host.

Instructions

List the heaviest processes by CPU% (sampled over ~0.5s) or resident memory.

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": "top_processes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
sort_byNocpu

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), so the description's job is to add operational context — and it does, by disclosing that CPU% is sampled over roughly 0.5 seconds. That tells the agent the CPU figure is a short snapshot rather than a lifetime average, which materially affects interpretation. It does not mention ordering direction or result truncation, keeping it below 5.

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?

A single front-loaded sentence with no filler; the two sorting modes and the sampling caveat are packed into one clause each. Nothing could be removed without losing information.

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?

This is a simple two-parameter, zero-required read tool with an output schema, so return values need not be explained. The description covers what is measured and how it is sampled; only the default limit (15) and descending ordering are left to the schema and common sense.

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?

With 0% schema description coverage, the description must carry parameter meaning, and it does for the enum: cpu maps to CPU% (sampled ~0.5s) and memory maps to resident memory. The limit parameter is only implied by "heaviest" and the ordering direction is unstated, so it is not fully compensating, but the enum clarification is the substantive addition.

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 uses a specific verb and resource ("List the heaviest processes") and narrows scope to CPU% or resident memory, which is enough to separate it from process_details and kill_process without opening either schema. It stops short of naming or explicitly contrasting any sibling, so it lands at clear-but-undifferentiated rather than 5.

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 phrase "heaviest processes" implies the use case (resource-hog triage), but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as process_details for a single process. Guidance is inferable rather than stated.

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