Skip to main content
Glama

unit_status

Read-only

Inspect a systemd unit's load, active/sub state, result, main PID, and recent journal entries to triage service issues without write access.

Instructions

One unit's load, active and sub state, result and main PID, plus its last journal entries (default 20, at most 1000). Read-only.

Text is redacted and capped at 4096 bytes per value and 65536 bytes in all; a cut value ends in [TRUNCATED] and sets truncated to true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitYes
linesNo
scopeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitYes
scopeYes
resultYes
entriesYes
sub_stateYes
truncatedYes
load_stateYes
descriptionYes
active_stateYes
exec_main_pidYes

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 declare readOnlyHint=true, so 'Read-only' is redundant. However the description adds real behavioral context beyond structured data: per-value redaction, 4096-byte/65536-byte caps, the [TRUNCATED] marker, and the truncated flag — all of which affect how an agent must interpret the response.

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-loads the return payload, then the read-only note, then truncation semantics — logical ordering with no filler. The standalone 'Read-only' sentence duplicates the readOnlyHint annotation and is the one throwaway line.

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?

An output schema exists, so return-shape explanations are unnecessary, and the description usefully covers truncation semantics that the output schema alone would not convey. The remaining gap is the undocumented required 'scope' parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description is the only source. It explains 'lines' (default 20, max 1000) and implies 'unit' (single unit), but the required 'scope' parameter (system vs user, presumably) is never explained anywhere, leaving a required argument opaque.

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?

Names a specific resource ('one unit') and enumerates exactly what status fields it returns — load, active/sub state, result, main PID, plus tailed journal entries. An agent can distinguish it from list_units, failed_units, and journal without opening a schema.

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 single-unit framing implies 'use this for one named unit', but no sibling is named and no when-not-to-use condition is stated (e.g. use list_units to enumerate, journal for log-only retrieval). Usage is inferable but not guided.

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