services/manage
Control one systemd service: start, stop, restart, reload, enable, or disable it over D-Bus. Requires root privileges via polkit grant.
Instructions
Starts, stops, restarts, reloads, enables or disables ONE systemd service over D-Bus (.service is appended when missing). Mutating. Ordinary users are usually refused by polkit, so privileged: true (needs a grant in mcp-sudo.yaml) is normally required. start, stop, restart and reload wait for the systemd job and return Job N completed with status: done (or failed, canceled, timeout, dependency, skipped); a slow one can hit the 30 s worker limit. reload asks the service to re-read its config without stopping it, only if the unit supports it. enable and disable only change whether it starts at boot; they do not start or stop it. To see state use services/list or the service://<name>/status resource, for logs logs/journal-control, for containers docker/manage, for a raw signal to a PID processes/delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | start, stop, restart and reload wait for the systemd job; enable and disable only change start at boot | |
| service | Yes | Unit name; '.service' is appended if missing (e.g. 'kubelet' or 'kubelet.service') | |
| privileged | No | Run as root. Normally required (polkit); needs a grant for this tool in mcp-sudo.yaml |