Skip to main content
Glama
murzirius

VPS-Guardian-MCP

by murzirius

check_service_status

Check the operational status of a systemd service, returning active state, enabled state, and recent logs to diagnose issues.

Instructions

Check the operational status of a systemd service unit.

Args: service_name: Name of the system service (e.g. 'nginx', 'mysql', 'postgresql', 'ufw', 'docker').

Returns: JSON string with active state ('active', 'inactive', 'failed'), enabled state, and recent status logs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
service_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A4.2/5.0
Behavior3/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 helps by stating the return payload: JSON with active state, enabled state, and recent status logs. Yet it does not explicitly disclose that the operation is read-only, what happens when the service does not exist, or whether elevated permissions are required to query status. This leaves some behavioral ambiguity.

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 compact and efficiently structured with Args and Returns sections. The first sentence immediately states the tool's purpose, and every subsequent sentence adds necessary details about the parameter and output. There is no inflated or redundant wording.

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?

For a simple tool with one required string parameter, the description is largely complete: it names the service, gives examples, and describes the expected return content. It does not explain error cases or permission requirements, but the output schema already covers the return shape, and the tool's scope is narrow. A small gap remains in not explicitly distinguishing from failed-unit or service-log tools.

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 compensate, and it does. The Args section defines service_name as 'Name of the system service' and gives concrete examples ('nginx', 'mysql', 'postgresql', 'ufw', 'docker'). This adds real meaning beyond the schema's bare 'Service Name' title, though it could have specified whether the '.service' suffix is accepted.

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 opens with a specific verb and resource: 'Check the operational status of a systemd service unit.' It clearly distinguishes this from sibling tools like list_systemd_timers, get_failed_systemd_units, and read_service_logs by focusing on the status of a single named service unit. The Returns section further clarifies what is inspected: active state, enabled state, and recent status logs.

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?

The description clearly implies the use case: you need the operational status of a specific systemd service. It provides a named service parameter with examples, which is enough context to select it over broader tools like get_system_health or get_failed_systemd_units. However, it does not explicitly name alternatives or provide when-not-to-use guidance, so it misses full 5-level routing clarity.

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