Skip to main content
Glama

get_host_details

Read-only

Retrieve detailed information for a specific Ambari host or all cluster hosts, including hardware, state, metrics, and components for monitoring, auditing, and troubleshooting.

Instructions

Retrieves detailed information for a specific host or all hosts in the Ambari cluster.

[Tool Role]: Dedicated tool for retrieving comprehensive host details including metrics, hardware info, and components.

[Core Functions]:

  • If host_name provided: Query specific host information

  • If host_name not provided: Query all hosts and their detailed information

  • Return host hardware specs, state, metrics, and assigned components

  • Provide formatted output for LLM automation and cluster management

[Required Usage Scenarios]:

  • When users request specific host details or host status

  • When users request all hosts details or cluster-wide host information

  • When auditing or monitoring individual or all cluster nodes

  • When troubleshooting host-specific issues

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": "get_host_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
host_nameNoName of the specific host to retrieve details for (optional, e.g., "bigtop-hostname0.demo.local")

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.8.2
    • addedInput schema / properties / host_name / description
      Added value: +"Name of the specific host to retrieve details for (optional, e.g., \"bigtop-hostname0.demo.local\")"
  2. Changed4 schema fields changedv3.7.5
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / host_name / title
      Removed value: -"Host Name"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"_WrappedResult"
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description does add genuinely behavioral content: omitting host_name switches to a cluster-wide query, and results include hardware specs, state, metrics, and components. However it says nothing about response volume or cost when querying all hosts, nor about pagination or permissions, which are the real risks for the no-parameter mode.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded, but the bracketed section headers and bullet lists are largely padding that restates the same idea four ways ('specific host details', 'all hosts details', 'auditing or monitoring', 'troubleshooting'). Phrases like 'comprehensive host details' and 'detailed information' recur without adding information, so much of the text does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With one well-documented optional parameter, annotations, and an output schema in place, the description covers what an agent needs to invoke it correctly, including the two operating modes. The only substantive gap is the boundary against the sibling get_hosts, plus no warning about the larger result set in all-hosts mode.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema even supplies an example host name, so the baseline would be 3. The description exceeds that by explaining the consequence of omitting the parameter (query all hosts), which the schema's 'optional, default null' does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource ('Retrieves detailed information for a specific host or all hosts') and clarifies the dual scope. It is clear on its own, but it never distinguishes itself from the sibling get_hosts, leaving an agent to guess which one lists vs. details hosts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The '[Required Usage Scenarios]' block gives concrete triggers: requesting specific host details or status, requesting all hosts, auditing/monitoring nodes, and troubleshooting host-specific issues. It provides clear positive context but no exclusions and no named alternative, so an agent still has no rule for choosing between this and get_hosts.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.