get_systemd_units
List all systemd units with their states and filter by active, inactive, or failed status to get a complete service inventory on Linux.
Instructions
Lists all systemd units and their states. The state param filters by exact match on the Active column ('failed', 'active', 'inactive'). Read-only via systemctl; fatal if systemctl is missing or fails. Use for a full service inventory; get_service_status for one unit's details.
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": "get_systemd_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | optional state filter: 'failed', 'active', 'inactive' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | ||
| errors | No |