Diagnose spm
spm_doctorDiagnose whether spm can manage services by checking manager reachability, unit directory, log access, login persistence, and executable; use before first service or when create/start/list fails.
Instructions
Check that spm can manage services in the chosen scope: whether the service manager is reachable and recent enough, the unit directory, log access, login persistence and the spm executable; the exact checks depend on the platform. Use it when a create, start or list call fails unexpectedly, or before the first service on a new machine; use spm_get_logs for problems inside one service. Returns one line per check marked ok, info, warn or fail, with details on what is wrong. Acts on the current user's services unless system is true; machine-wide services need root on Linux and macOS or an Administrator shell on Windows, so only use system when the user asks for it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spm_doctor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system | No | Manage machine-wide services instead of the current user's. Requires root or Administrator; leave false unless the user asks for system scope. |