check_service_status
Check the operational status of a systemd service, returning active state, enabled state, and recent logs to diagnose issues.
Instructions
Check the operational status of a systemd service unit.
Args: service_name: Name of the system service (e.g. 'nginx', 'mysql', 'postgresql', 'ufw', 'docker').
Returns: JSON string with active state ('active', 'inactive', 'failed'), enabled state, and recent status 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": {
"service_name": "<service_name>"
},
"name": "check_service_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |