Skip to main content
Glama
ks6573
by ks6573

process_tree

Read-onlyIdempotent

Visualize process hierarchies by returning a process tree. Specify a PID to include its ancestors and descendants, or omit it to view the full system tree at a chosen depth.

Instructions

Returns a process tree. With a pid, includes ancestors + descendants. Without a pid, returns the system tree at the requested depth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNoRoot PID. Omit for system tree.
depthNo
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds meaningful behavior beyond that: the inclusion of ancestors+descendants for a given pid and the system tree behavior without one. No contradictions with annotations.

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 two sentences, succinct, and front-loaded with the main action. Every clause adds value without redundancy or fluff.

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?

While it covers the two core modes, it is ambiguous whether depth applies to the pid case or only to the system tree. It also does not describe the return structure despite the lack of an output schema, leaving some gaps for an agent relying solely on this description.

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 covers pid well but depth only has type/default constraints. The description compensates by explaining pid as root and depth as controlling the system tree depth, adding meaning to both parameters beyond the schema.

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 states 'Returns a process tree' with a specific verb and resource, then clarifies two modes (with/without pid). This distinguishes it from sibling tools like get_top_processes or get_process_details, which target different process information.

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?

It gives clear context on when to use each mode: with a pid for ancestors+descendants, without a pid for the system tree at a depth. However, it does not explicitly mention alternatives or exclusions, so it falls short of full when/when-not guidance.

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/ks6573/SysControl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server