stop_service
Stop a specified service in the Ambari cluster using the MCP-Ambari-API. Initiates a monitored shutdown, returns request details for progress tracking, and provides clear success or error messages for automation.
Instructions
Stops a specific service in the Ambari cluster.
[Tool Role]: Dedicated tool for automated stop of Ambari services, ensuring safe and monitored shutdown.
[Core Functions]:
- Stop the specified service and initiate Ambari request
- Return request information for progress tracking
- Provide clear success or error message for LLM automation
[Required Usage Scenarios]:
- When users request to "stop" a service (e.g., "stop HDFS", "stop YARN")
- When maintenance or troubleshooting requires a service shutdown
- When users mention service stop, shutdown, or automated stop
Args: service_name: Name of the service to stop (e.g., "HDFS", "YARN", "HBASE")
Returns: Stop operation result (success: request info, failure: error message) - Success: Multi-line string with request ID, status, monitor URL, and instructions for progress tracking - Failure: English error message describing the problem
Input Schema
Name | Required | Description | Default |
---|---|---|---|
service_name | Yes |