Skip to main content
Glama

restart_host_component

Restart a specific host component in an Ambari cluster by stopping and then starting it, enabling targeted recovery without affecting other hosts.

Instructions

Restarts a specific component on a specific host in the Ambari cluster (stop then start).

[Tool Role]: Dedicated tool for restarting individual host-level components, enabling fine-grained control without affecting other hosts or the overall service.

[Core Functions]:

  • Stop the specified component on the given host and wait for completion

  • Start the component and return request information

  • Return clear success or error message for LLM automation

[Required Usage Scenarios]:

  • When users request to restart a component on a specific host (e.g., "restart DataNode on host-A")

  • When recovering a stuck or malfunctioning single component instance

  • When applying config changes that require a component-level restart

Args: host_name: Hostname where the component resides (e.g., "hdp-node-01.example.com") component_name: Name of the component to restart (e.g., "DATANODE", "NODEMANAGER")

Returns: Restart operation result (success: request info, failure: error message)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
host_nameYes
component_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Describes stop-then-start process, wait for completion, and return info. No annotations provided, but description covers key behavioral aspects.

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

Conciseness5/5

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

Concise yet comprehensive with clear sections (Tool Role, Core Functions, Required Usage Scenarios, Args, Returns) and no unnecessary text.

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?

Covers all necessary context: parameters, behavior, return values, and usage scenarios. Could be slightly more complete regarding error details, but adequate.

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 has 0% description coverage, but description provides examples and explanation for host_name and component_name, adding value beyond schema.

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?

Clearly states 'Restarts a specific component on a specific host' with verb and resource, and distinguishes from siblings like restart_service, start_host_component, etc.

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?

Explicitly lists when to use (component restart requests, recovery, config changes) and implies when not to via sibling context.

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