Skip to main content
Glama

vm_ps

Lists processes inside a UTM guest as compact JSON sorted by memory, with optional name/user filters and CPU sampling for resource analysis.

Instructions

Lists guest processes, biggest memory first, as compact JSON: pid, ppid, name, cmdline, session, user, cpu_s (CPU seconds so far), memory_mb, started (unix seconds); unreadable fields are left out. name / user: case-insensitive substrings. sample_ms (0-5000) measures twice that far apart and adds cpu_percent (share of all CPUs). Windows guests, needs the helper.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vm": "<vm>"
    },
    "name": "vm_ps"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
nameNo
userNo
sample_msNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the read-only listing nature, the platform restriction ('Windows guests'), an infrastructure dependency ('needs the helper'), that unreadable fields are silently omitted, and that sample_ms induces a measurement delay ('measures twice that far apart'). It omits any statement about permissions, or about whether a long process list is truncated or paginated, which is a real gap for a listing tool.

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?

Front-loaded with purpose, then fields, then filters, then sampling cost, then platform caveats — a sensible order with no filler sentences and no repetition. The inline field enumeration (pid, ppid, name, cmdline, ...) is somewhat wasteful given an output schema exists, but it is compactly written as a single clause.

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?

For a 4-parameter tool with no annotations and 0% schema coverage, the definition covers the important ground: platform, helper dependency, filter matching rules, sampling semantics and column meaning. The remaining holes are the semantics of the required vm argument and the absence of any statement about result size limits or truncation.

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 description coverage is 0%, so the description must compensate and largely does: it defines name and user as 'case-insensitive substrings' (matching, not exact), gives sample_ms a range (0-5000) plus the two-sample behavior and its derived cpu_percent column. The required 'vm' parameter is never explained — it is only indirectly implied by 'guest processes', leaving the agent to guess whether it is a name or an ID.

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?

Opens with a concrete verb and resource: 'Lists guest processes, biggest memory first, as compact JSON', and even states the output ordering and format, so the agent knows exactly what the call produces. It does not differentiate against any sibling (e.g. vm_exec, vm_info), so it stops short of the top band.

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 implied by the purpose statement rather than stated: nothing says when to prefer vm_ps over vm_exec or vm_ui_tree, and no exclusions or prerequisites are given beyond 'Windows guests, needs the helper'. The one piece of situational guidance is the sample_ms explanation, which tells the agent when the extra cpu_percent column is worth the wait.

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