Service status
service_statusInspect a systemd unit's load state, active status, main process, last result, restart count, and activation time to diagnose Linux service health.
Instructions
The state of one systemd unit, from systemctl show: whether it is loaded, active, its main process, last result, restart count and when it became active. A bare name such as nginx means nginx.service.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"unit": "<unit>"
},
"name": "service_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | a systemd unit name such as nginx or nginx.service (letters, digits and : _ . @ - only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| found | Yes |