Skip to main content
Glama

service_state

Check systemd services on an instance to detect enabled-but-inactive, needs-reload, or active-but-unnecessary states.

Instructions

Enablement / active / reload state of one instance's enabled systemd services. Read-only (systemctl is-enabled / is-active + NeedDaemonReload per unit; never changes state). Returns JSON: {units: [{unit, enabled, active, needs_reload}]}. Powers the service-state detector (enabled-but-inactive, needs-reload, active-but-unnecessary).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesInstance ID or name.
Behavior4/5

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

The description explicitly declares the tool is read-only ('never changes state') and lists the underlying systemctl commands. With no annotations provided, it sufficiently conveys behavioral safety. However, it omits potential error conditions or permission requirements.

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 (four sentences, no filler) and front-loaded with the primary purpose. Each sentence adds necessary information: purpose, read-only guarantee, return format, and usage context.

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 read-only tool with no output schema, the description provides the return JSON structure and its role in detection. It lacks error behavior details (e.g., missing instance) but is otherwise complete for its complexity.

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?

The input schema already covers the single parameter 'instance_id' with a clear description. The description adds 'one instance' context but offers no additional semantic meaning beyond what the schema provides, so baseline score applies.

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 the tool retrieves enablement, active, and reload states of enabled systemd services for a single instance. It uses specific verbs ('get', 'powers') and distinguishes itself from siblings like 'check_status' by focusing on systemd service state details.

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?

The description implies use for service-state detection but does not explicitly state when to use this tool versus alternatives (e.g., 'check_status' or 'get_server_info'). No exclusion criteria or when-not-to-use guidance is provided.

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/zb-ss/servonaut'

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