Skip to main content
Glama

Service Status

service_status

Check the status of a systemd service to verify whether it is running, stopped, or failed. Use the service name to diagnose service state on Linux hosts.

Instructions

Return systemd service status.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "service_name": "<service_name>"
    },
    "name": "service_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_nameYes

Output Schema

NameRequiredDescriptionDefault
nameYes
errorNo
sinceNo
stateYes
tasksNo
activeYes
loadedYes
main_pidNo
sub_stateYes
descriptionNo
memory_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full behavioral burden and does almost nothing with it. It does not say whether the call requires elevated privileges, what happens for a nonexistent or inactive unit (error vs. status report), or whether the output is a live query or cached. Only the title-level fact that it reads systemd state is conveyed.

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?

A single short sentence with the resource front-loaded and zero filler. Its brevity is efficient, though it shades into under-specification rather than tight writing.

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?

Tool complexity is low (one validated string parameter, a read-only status query) and an output schema exists, so return values need not be described. Still, with no annotations at all, the definition leaves the agent without any behavioral or usage context beyond the bare purpose.

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 0%, but the single parameter is validated with a clear pattern and length bounds, and the phrase 'systemd service status' implicitly identifies service_name as a systemd unit name. That implication is thin — it doesn't mention unit suffixes, templates, or instances — but the parameter is close to self-explanatory.

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?

The description uses a specific verb ('Return') and a specific resource ('systemd service status'), which is clear and unambiguous. It does not, however, distinguish this tool from sibling diagnostics tools such as service_failure_diagnostics, so an agent must infer that this is the raw status read rather than the deeper failure analysis.

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 guidance, no mention of prerequisites, and no reference to alternatives. The agent gets no help deciding between this and service_failure_diagnostics, journal_search, or other service-related tools.

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