Unit status
svc_statusInspect a systemd unit's status, PID, start time, restarts, memory, tasks, and last error before reading logs.
Instructions
State, main PID, start time, restarts, memory, tasks and last error of one systemd unit. Use it before reading logs.
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": "svc_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | Unit name, e.g. nginx.service | |
| detail | No | detailed adds unit file state and fragment path | concise |