service
Query or control systemd services on remote servers: check status, start, stop, restart, or reload. Actions require sudo.
Instructions
Manage or query a systemd service. Use action=status to check, or start/stop/restart/reload to control. Actions other than status require sudo.
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": {
"server": "<server>",
"service": "<service>",
"action": "<action>"
},
"name": "service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| reason | No | Human-readable explanation of why this service action is needed (for audit log) | |
| server | Yes | Server name | |
| service | Yes | Service name |