Skip to main content
Glama

service_status

Check the status and recent logs of a systemd service by unit name, with an optional target host.

Instructions

Show the status of one systemd service, including recent log lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNotarget host name from the opsgate config; omit for the default host
nameYessystemd unit name, for example nginx or docker.service

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present the description carries the full burden. 'Show' correctly implies a non-destructive read, and it discloses a real behavioral trait — that recent log lines are bundled into the response — but it says nothing about permissions, failure behavior for unknown/missing units, or how many log lines are returned.

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?

A single front-loaded sentence with no filler, and the scope ('one service') plus the extra payload ('including recent log lines') both land immediately.

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 two-parameter read-only diagnostic with no output schema, the description covers what the tool acts on and what it returns (status plus log lines). Given the absence of annotations it could say more about error cases, but nothing critical for correct invocation is missing.

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%, so the schema already documents both 'host' (default host fallback) and 'name' (unit name with examples); the description adds no further parameter meaning. Baseline 3 applies when the schema does all the work.

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 and resource ('Show the status of one systemd service') and scopes it to a single unit, which implicitly separates it from the plural sibling service_list. It never names an alternative, so it stops short of a 5.

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 only usage signal is implied by the verb 'show' — there is no stated when-to-use, no prerequisite (does the unit need to be running?), and no mention of siblings like journal_tail or journal_errors that an agent might otherwise pick for log inspection.

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