list_hosts
Retrieves all registered host names and API links from the Ambari cluster for monitoring or auditing cluster nodes.
Instructions
Retrieves the list of hosts in the Ambari cluster.
[Tool Role]: Dedicated tool for listing all hosts registered in the Ambari cluster.
[Core Functions]:
Query Ambari REST API for host list
Return host names and API links
Provide formatted output for LLM automation and cluster management
[Required Usage Scenarios]:
When users request cluster host list or host details
When auditing or monitoring cluster nodes
Returns: List of hosts (success: formatted list, failure: error message)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |