Skip to main content
Glama

MCP-Ambari-API

restart_service

Restart specific services in an Ambari cluster with a safe stop-start sequence. Automates service restart for maintenance, troubleshooting, or configuration changes, ensuring clear success or error messages for automation workflows.

Instructions

Restarts a specific service in an Ambari cluster (stop then start).

[Tool Role]: Dedicated tool for automated restart of Ambari services, ensuring safe stop and start sequence.

[Core Functions]:

  • Stop the specified service and wait for completion
  • Start the service and wait for completion
  • Return clear success or error message for LLM automation

[Required Usage Scenarios]:

  • When users request to "restart" a service (e.g., "restart HDFS", "restart YARN")
  • When troubleshooting or recovering service issues
  • When maintenance or configuration changes require a restart
  • When users mention service restart, safe restart, or automated restart

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

Returns: Restart operation result (success: English completion message, failure: English error message) - Success: "Service '<service_name>' restart operation completed successfully." - Failure: "Error: ..." with details

Input Schema

NameRequiredDescriptionDefault
service_nameYes

Input Schema (JSON Schema)

{ "properties": { "service_name": { "title": "Service Name", "type": "string" } }, "required": [ "service_name" ], "type": "object" }

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