Skip to main content
Glama

get_service_components

Retrieve detailed component information and host assignments for a specific service in an Ambari Hadoop cluster to support troubleshooting, scaling, and automation tasks.

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

Args: service_name: Name of the service (e.g., "HDFS", "YARN", "HBASE")

Returns: Service components detailed information (success: formatted list, failure: English error message)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
service_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes what the tool returns ('formatted list' on success, 'English error message' on failure) and mentions automation and troubleshooting use cases. However, it doesn't specify whether this is a read-only operation (implied but not explicit) or mention any rate limits or authentication requirements.

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

Conciseness3/5

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

The description uses clear section headers ([Tool Role], [Core Functions], etc.) which improves structure, but contains some redundancy (e.g., 'Retrieves detailed components information' then '[Tool Role]: Dedicated tool for retrieving service component details'). The 'Args' and 'Returns' sections repeat information already implied in earlier sections. Could be more concise while maintaining clarity.

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?

Given the tool has an output schema (which handles return value documentation), no annotations, and a simple single-parameter input, the description provides good contextual completeness. It explains the tool's purpose, usage scenarios, and behavioral aspects. The main gap is lack of explicit read-only declaration and any rate limit/authentication information, but otherwise covers what's needed for this type of retrieval tool.

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

Parameters3/5

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

The schema description coverage is 0%, but the description compensates by explaining the single parameter's purpose ('Name of the service') and providing examples ('HDFS', 'YARN', 'HBASE'). However, it doesn't specify format constraints, valid service names, or whether case sensitivity matters. The description adds meaningful context but doesn't fully compensate for the schema coverage gap.

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

Purpose5/5

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

The description clearly states the tool's purpose with specific verb ('retrieves') and resource ('detailed components information for a specific service in the Ambari cluster'). It distinguishes from siblings like get_service_details and get_service_status by focusing specifically on components and host assignments rather than general service information or status.

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

Usage Guidelines5/5

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

The description provides explicit usage scenarios including 'When users request service component details or host info,' 'When troubleshooting service health or scaling,' and 'When users mention component list, host assignments, or service breakdown.' This gives clear guidance on when to use this tool versus alternatives like get_service_details or get_service_status.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/call518/MCP-Ambari-API'

If you have feedback or need assistance with the MCP directory API, please join our Discord server