Skip to main content
Glama

get_service_status

Check the detailed status of a systemd service to diagnose why it failed or verify its current state. Uses systemctl status for read-only information.

Instructions

Returns detailed status of a systemd service (or --user service). name is required and validated. Read-only via systemctl status. Errors from systemctl (e.g. unit not found) appear in the errors field with the raw output; only a missing systemctl is fatal. Use to check why a service failed; get_systemd_units to list states.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesservice name (e.g. 'nginx.service' or 'sshd')
userNoquery user-level service (default: false)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNo
nameYes
activeNo
errorsNo
loadedNo
outputYes
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool is read-only via systemctl status, explains how errors are surfaced (errors field with raw output), and clarifies that only a missing systemctl is fatal. This is rich behavioral context beyond what annotations might provide.

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 concise and front-loaded with the core purpose. Every sentence adds distinct value: purpose, validation, read-only nature, error behavior, and usage guidance. No fluff or redundancy.

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?

Given the tool's moderate complexity, the description is complete. It covers purpose, usage, error handling, and alternatives. Since an output schema exists, return-value details are not needed. The description fully equips an agent to select and invoke the tool correctly.

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 description coverage is 100% for both parameters (name and user). The description adds minimal semantic value beyond restating that name is required and mentioning --user, which is already covered by the schema. Baseline 3 is appropriate because the schema does the heavy lifting.

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 clearly states it 'Returns detailed status of a systemd service' with a specific verb and resource. It also distinguishes itself from the sibling tool get_systemd_units by noting that get_systemd_units is for listing states, making the purpose unambiguous.

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

Usage Guidelines5/5

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

Explicitly provides a use case ('Use to check why a service failed') and names an alternative ('get_systemd_units to list states'). This gives clear when-to-use and when-not-to-use 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/Mohabdo21/linux-mcp'

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