restart_service
Restarts an Ambari service by stopping it, waiting for completion, then starting it to recover from issues or apply maintenance changes.
Instructions
Restarts a specific service in an Ambari cluster (stop then start).
[Tool Role]: Dedicated tool for automated restart of Ambari services, ensuring safe stop and start sequence.
[Core Functions]:
Stop the specified service and wait for completion
Start the service and wait for completion
Return clear success or error message for LLM automation
[Required Usage Scenarios]:
When users request to "restart" a service (e.g., "restart HDFS", "restart YARN")
When troubleshooting or recovering service issues
When maintenance or configuration changes require a restart
When users mention service restart, safe restart, or automated restart
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": "restart_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | Name of the service to restart (e.g., "HDFS", "YARN") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |