get_service_components
Retrieve a service's components with state, category, host assignments, and instance counts to troubleshoot health or scaling in an Ambari cluster.
Instructions
Retrieves detailed components information for a specific service in the Ambari cluster.
[Tool Role]: Dedicated tool for retrieving service component details and host assignments.
[Core Functions]:
List all components for a service, including state and category
Show host assignments and instance counts
Provide formatted output for LLM automation and troubleshooting
[Required Usage Scenarios]:
When users request service component details or host info
When troubleshooting service health or scaling
When users mention component list, host assignments, or service breakdown
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_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | Name of the service (e.g., "HDFS", "YARN", "HBASE") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |