Skip to main content
Glama
crunchtools

io.github.crunchtools/systemd

by crunchtools

Unit Restart Tool

unit_restart_tool

Restart a systemd unit by name, unless it is protected. Provide the unit name to perform the restart.

Instructions

Restart a unit. Refused for units on the protected list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unit_nameYesSystemd unit name

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It discloses one trait – refusal for protected units – but does not mention that restart is a disruptive mutating operation, any permission requirements, or that it stops and starts the unit. This is marginal beyond the verb itself.

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 concise two-sentence description with no filler. Both sentences carry meaning: the core action and the refusal constraint. It is appropriately front-loaded with the verb.

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?

For a single-parameter tool with an output schema, the description is minimally complete: it states the operation and one key constraint. However, it omits operational context such as the disruptive nature of restart, permission requirements, and the relationship to reload, which would help an agent use it safely without annotations.

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 covers 100% of the parameter ('Systemd unit name'), so the baseline is 3. The description adds no additional semantics such as exact-name syntax, glob support, or validation rules beyond what the schema provides.

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?

States a specific verb and resource ('Restart a unit'), which unambiguously distinguishes it from sibling tools like unit_start_tool, unit_stop_tool, and unit_reload_tool. The action is clear and not a tautology of the name.

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?

Provides no guidance on when to restart versus using a sibling such as unit_reload_tool or unit_start_tool, and no mention of prerequisites like daemon-reload after unit file changes. The only context is a refusal condition for protected units, which is a restriction, not a usage guideline.

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