Skip to main content
Glama
agent-pulse-mcp
by wangcch

Get CPU Usage

getCPUUsage
Read-only

Retrieve current CPU metrics—total and per-core usage, load averages, and top processes by CPU consumption—to monitor host performance in real time.

Instructions

Returns current CPU metrics: total usage %, per-core usage, load averages (1/5/15 min), and top N processes by CPU consumption.

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

Input Schema

NameRequiredDescriptionDefault
topNNoNumber of top processes to return (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and locality are covered. The description adds that values are 'current' (a point-in-time snapshot) and lists the metric families returned, which is useful, but it does not address sampling interval, cost, or how it relates to the streaming sibling.

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?

One sentence, front-loaded with the core action and followed by the enumerated return contents. Every clause carries information; nothing is redundant or padded.

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?

With a single optional parameter, no output schema, and only read-only annotations, the description carries the return-value burden and does so by enumerating the metric families. Only the snapshot-vs-subscription distinction against subscribeMetrics is left unstated.

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%, so baseline would be 3. The description adds meaning by clarifying that the top-N list is ordered 'by CPU consumption', which the schema's 'Number of top processes' does not specify, and it implicitly notes the parameter affects only that portion of the output.

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?

Uses a specific verb ('Returns') and resource ('current CPU metrics') and enumerates exactly what is included: total usage %, per-core usage, load averages, and top processes. The CPU subject matter implicitly separates it from getMemoryUsage/getTemperature, though no sibling is named explicitly.

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?

Usage is only implied: an agent can infer it should call this when it needs CPU statistics. There is no statement of when to prefer it over subscribeMetrics (e.g. one-shot snapshot vs. ongoing subscription) or any exclusions, leaving the sibling choice to inference.

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