Skip to main content
Glama

service_status

Read-only

Check the status of a systemd unit or list failed units and running services. Enables safe, read-only service health inspection on a Linux host.

Instructions

Status of one systemd unit (e.g. 'ssh', 'docker'), or with no unit, list failed units plus running services. Set user=True for the user's own systemd instance.

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

Input Schema

NameRequiredDescriptionDefault
unitNo
userNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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, and the description adds genuine value by disclosing the argument-dependent output (failed units plus running services with no unit). However, it says nothing about privilege requirements — querying system units typically needs elevated permissions — or what happens when the named unit does not exist.

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?

Two tight sentences, front-loaded with the primary purpose and secondary mode, with examples that earn their space. The dual-mode clause is slightly dense but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 values need not be described, and annotations cover the safety profile. With both parameters explained and both modes covered, an agent has enough to call this correctly.

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 carry the burden, and it does: it explains that `unit` takes a systemd unit name (with 'ssh'/'docker' examples) and that `user` selects the user's own systemd instance rather than the system one. It stops short of naming the expected unit-name format (e.g. '.service' suffix).

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+resource ("Status of one systemd unit") and immediately clarifies the second operating mode when no unit is supplied. The domain qualifier (systemd) implicitly separates it from siblings like system_overview or process_details, but 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 Guidelines4/5

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

Gives clear conditional guidance: pass a unit to inspect one service, omit it to list failed units plus running services, and set user=True for the per-user systemd instance. It lacks explicit exclusions or pointers to alternatives, but the when-to-use conditions are unambiguous.

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