Skip to main content
Glama

list_units

Read-only

Inspect systemd units in memory read-only, filtering by scope, state, type, or name pattern to triage services.

Instructions

List the units systemd has in memory (systemctl list-units --all). Read-only.

scope is 'user' or 'system'. state filters on a LOAD, ACTIVE or SUB state, type on a unit type such as 'service', pattern on a glob over unit names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo
scopeYes
stateNo
patternNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYes
unitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 and openWorldHint=false, so the description's 'Read-only.' is largely redundant. The one piece of added context is that it reflects systemd's in-memory view rather than on-disk unit files, but nothing is said about volume of output or how it scales.

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?

Tight and front-loaded: the purpose and read-only nature come first, then one compact line per parameter. No filler sentences, though the parameter block reads as a run-on fragment list rather than clean structure.

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 an output schema present, return values need not be described, and the zero-coverage schema is compensated for by the parameter explanations. The remaining gap is sibling routing against failed_units/list_timers, which an agent would otherwise have to guess at.

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 0%, so the description carries the full burden and largely does: it defines scope's domain ('user' or 'system'), explains state as a LOAD/ACTIVE/SUB state filter, type as a unit type such as 'service', and pattern as a glob over names. It stops short of examples or noting which parameters are optional/defaulted.

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 ('List the units systemd has in memory') and pins it to the underlying command with `--all`. It does not, however, differentiate itself from closely related siblings like failed_units, list_timers, or unit_status, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no mention of the sibling tools that overlap heavily (failed_units, list_timers). The only routing signal is implicit in the parameter descriptions, which is not the same as usage guidance.

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