get_service_status
Check the current status and state of a specific Ambari cluster service via REST API to monitor service health and troubleshoot issues.
Instructions
Retrieves the status information for a specific service in an Ambari cluster.
[Tool Role]: Dedicated tool for real-time retrieval of specific service status and state information
[Core Functions]:
Retrieve specific service status via Ambari REST API
Provide detailed service state information (STARTED, STOPPED, INSTALLING, etc.)
Include service configuration and component information
[Required Usage Scenarios]:
When users ask about specific service status (e.g., "HDFS status", "YARN state")
When troubleshooting service issues
When monitoring specific service health
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": "get_service_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | Name of the service to check (e.g., "HDFS", "YARN", "HBASE") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |