dump_configurations
Unified configuration introspection tool (supersedes get_configurations & list_configurations & dump_all_configurations).
Read cluster and service state, start or stop a service or one component on one host, follow the request that creates task by task, and pull the metrics behind it.
LABSCO SUMMARY
Starting a service is the easy half; knowing which host refused is the half that costs an afternoon, and get_request_tasks is the only place that answers it, filtering to FAILED or excluding COMPLETED so the exceptions surface without the full task list. The metrics side is deliberately strict in the same way: query_ambari_metrics accepts exact metric names only, so list_ambari_metric_apps, list_ambari_metrics_metadata and list_common_metrics_catalog are not conveniences but the required first step. Before wiring it in, note that get_current_alerts is a backward-compatible wrapper that get_alerts_history has replaced, and dump_configurations has absorbed the older configuration tools, so anything written against those older names is aiming at a surface that has already moved.
A server over Ambari's REST API and Ambari Metrics, exposing 30 tools across cluster and service state, service and host-component lifecycle, request tracking down to per-host tasks, alerts, users, configuration introspection and time-series metrics.
An Ambari cluster you can reach over its REST API. The metrics tools read from the Ambari Metrics service, and hdfs_dfadmin_report builds its capacity report out of those metrics rather than from HDFS directly.
One command plus credentials — uvx mcp-ambari-api, then supply credentials
USE CASES
Start everything in one call, then watch the request it created rather than guessing from service state.
Read the service's state and where its components live, drill into the failed tasks host by host, then restart only the component that failed.
Pull the configuration for one service with values included, bounded so a wide read does not return more than you can use.
Read the alert history for the host or service over a window, then look at what the host itself reports.
Find the appId, resolve the search term into the exact metric name the query tool insists on, then pull the series.
Produce the DataNode and capacity picture from the metrics already being collected, over a lookback window you choose.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
dump_configurationsUnified configuration introspection tool (supersedes get_configurations & list_configurations & dump_all_configurations).
get_active_requestsRetrieves currently active (in progress) requests/operations in an Ambari cluster. Shows running operations, in-progress tasks, pending requests.
[Tool Role]: Dedicated tool for monitoring currently running Ambari operations
[Core Functions]:
[Required Usage Scenarios]:
Returns: Active requests information (success: active request list, failure: error message)
get_alerts_historyRetrieve current alerts or alert history from Ambari cluster.
[Tool Role]: Unified tool for retrieving both current/active alert status and historical alert events from Ambari cluster
[Core Functions]:
[Required Usage Scenarios]:
Args: mode: "current" for active alerts, "history" for past events (default: "current") cluster_name: Name of cluster (uses default if not specified) service_name: Filter by specific service name (e.g., HDFS, YARN) host_name: Filter by specific host name state_filter: Filter by alert state (CRITICAL, WARNING, OK, UNKNOWN) definition_name: Filter by alert definition name maintenance_state: Filter by maintenance state (ON, OFF) - current mode only from_timestamp: Start timestamp in milliseconds (Unix epoch) - history mode only to_timestamp: End timestamp in milliseconds (Unix epoch) - history mode only include_time_context: Add current time information for LLM natural language processing limit: Maximum number of alert entries to return page_size: Number of entries per page (default: 100) - history mode only start_page: Starting page number (default: 0) - history mode only format: Output format - 'detailed', 'summary', 'compact', or 'groupedSummary' (current mode only)
Returns: Alert information (success: formatted alerts, failure: English error message)
get_cluster_infoRetrieves basic information for an Ambari cluster.
[Tool Role]: Dedicated tool for real-time retrieval of overall status and basic information for an Ambari cluster.
[Core Functions]:
[Required Usage Scenarios]:
Returns: Cluster basic information (success: formatted info, failure: English error message)
get_cluster_servicesRetrieves the list of services with status in an Ambari cluster.
[Tool Role]: Dedicated tool for real-time retrieval of all running services and basic status information in an Ambari cluster
[Core Functions]:
[Required Usage Scenarios]:
[Absolutely Prohibited Scenarios]:
Returns: Cluster service list with status information (success: service list with status, failure: error message)
get_current_alertsRetrieve current alerts from Ambari cluster.
DEPRECATED: This function is deprecated in favor of get_alerts_history with mode="current". This wrapper is maintained for backward compatibility.
get_host_detailsRetrieves 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]:
[Required Usage Scenarios]:
Args: host_name: Name of the specific host to retrieve details for (optional, e.g., "bigtop-hostname0.demo.local")
Returns: Detailed host information (success: formatted details, failure: error message)
get_prompt_templateReturn the canonical English prompt template (optionally a specific section).
Simplified per project decision: only a single English template file PROMPT_TEMPLATE.md is maintained.
get_request_statusRetrieves the status and progress of a specific Ambari request operation.
[Tool Role]: Dedicated tool for real-time tracking and reporting of Ambari request status.
[Core Functions]:
[Required Usage Scenarios]:
Args: request_id: ID of the Ambari request to check (int)
Returns: Request status information (success: detailed status and progress, failure: error message)
get_request_tasksRetrieves task-level details for a specific Ambari request (host-by-host breakdown).
[Tool Role]: Provides granular, per-host task information for an Ambari request, going beyond the summary level offered by get_request_status.
[Core Functions]:
[Required Usage Scenarios]:
Args: request_id: ID of the Ambari request to inspect (integer string) status_filter: Optional status to filter on. Use exact status names (PENDING, IN_PROGRESS, COMPLETED, FAILED, ABORTED, TIMEDOUT) or prefix with "not:" to exclude that status (e.g. "not:COMPLETED" shows only unfinished tasks). host_filter: Optional hostname substring to restrict results to matching hosts.
Returns: Task list formatted as a table (success) or an error message (failure).
get_service_componentsRetrieves 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]:
[Required Usage Scenarios]:
get_service_detailsRetrieves detailed status and configuration information for a specific service in the Ambari cluster.
[Tool Role]: Dedicated tool for retrieving comprehensive service details, including state, components, and configuration.
[Core Functions]:
[Required Usage Scenarios]:
Args: service_name: Name of the service to check (e.g., "HDFS", "YARN", "HBASE")
Returns: Detailed service information (success: comprehensive details, failure: English error message)
get_service_statusRetrieves the status information for a specific service in an Ambari cluster.
[Tool Role]: Dedicated tool for real-time retrieval of specific service status and state information
[Core Functions]:
[Required Usage Scenarios]:
get_userGet detailed information about a specific user.
hdfs_dfadmin_reportProduce a DFSAdmin-style capacity and DataNode report using Ambari metrics.
list_ambari_metric_appsReturn discovered AMS appIds, optionally with metric counts.
list_ambari_metrics_metadataRetrieve metric metadata from Ambari Metrics service with optional filters.
list_common_metrics_catalogList supported metrics per appId (exact names only).
list_hostsRetrieves the list of hosts in the Ambari cluster.
[Tool Role]: Dedicated tool for listing all hosts registered in the Ambari cluster.
[Core Functions]:
[Required Usage Scenarios]:
Returns: List of hosts (success: formatted list, failure: error message)
list_usersList all users in the Ambari system.
Returns a formatted list of all users with their basic information.
query_ambari_metricsFetch time-series metrics (exact metric names only) from Ambari Metrics.
restart_all_servicesRestarts all services in the Ambari cluster (stop all, then start all).
[Tool Role]: Dedicated tool for automated bulk restart of all Ambari services, ensuring safe stop and start sequence.
[Core Functions]:
[Required Usage Scenarios]:
Returns: Bulk restart operation result (success: English completion message, failure: English error message)
restart_host_componentRestarts 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]:
[Required Usage Scenarios]:
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)
restart_serviceRestarts 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]:
[Required Usage Scenarios]:
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)
start_all_servicesStarts all services in an Ambari cluster (equivalent to "Start All" in Ambari Web UI).
[Tool Role]: Dedicated tool for bulk starting all services in the cluster, automating mass startup.
[Core Functions]:
[Required Usage Scenarios]:
Returns: Start operation result (success: request info, failure: English error message)
start_host_componentStarts a specific component on a specific host in the Ambari cluster.
[Tool Role]: Dedicated tool for starting individual host-level components, enabling fine-grained control without affecting other hosts or the overall service.
[Core Functions]:
[Required Usage Scenarios]:
Args: host_name: Hostname where the component resides (e.g., "hdp-node-01.example.com") component_name: Name of the component to start (e.g., "DATANODE", "NODEMANAGER")
Returns: Start operation result (success: request info, failure: error message)
start_serviceStarts a specific service in the Ambari cluster.
[Tool Role]: Dedicated tool for automated start of Ambari services, ensuring safe and monitored startup.
[Core Functions]:
[Required Usage Scenarios]:
Args: service_name: Name of the service to start (e.g., "HDFS", "YARN", "HBASE")
Returns: Start operation result (success: request info, failure: error message)
stop_all_servicesStops all services in an Ambari cluster (equivalent to "Stop All" in Ambari Web UI).
[Tool Role]: Dedicated tool for bulk stopping all services in the cluster, automating mass shutdown.
[Core Functions]:
[Required Usage Scenarios]:
Returns: Stop operation result (success: request info, failure: English error message)
stop_host_componentStops a specific component on a specific host in the Ambari cluster.
[Tool Role]: Dedicated tool for stopping individual host-level components, enabling fine-grained control without affecting other hosts or the overall service.
[Core Functions]:
[Required Usage Scenarios]:
Args: host_name: Hostname where the component resides (e.g., "hdp-node-01.example.com") component_name: Name of the component to stop (e.g., "DATANODE", "NODEMANAGER")
Returns: Stop operation result (success: request info, failure: error message)
stop_serviceStops a specific service in the Ambari cluster.
[Tool Role]: Dedicated tool for automated stop of Ambari services, ensuring safe and monitored shutdown.
[Core Functions]:
[Required Usage Scenarios]:
BEFORE YOU INSTALL
30 tools when we connected.
CONTEXT COST
Rated by the size of the 30 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
uvx mcp-ambari-api{
"mcpServers": {
"mcp-ambari-api": {
"command": "uvx",
"args": [
"--python",
"3.12",
"mcp-ambari-api"
],
"env": {
"AMBARI_HOST": "localhost",
"AMBARI_PORT": "7070",
"AMBARI_USER": "admin",
"AMBARI_PASS": "admin",
"AMBARI_CLUSTER_NAME": "TEST-AMBARI",
"MCP_LOG_LEVEL": "INFO"
}
}
}
}{
"mcpServers": {
"mcp-ambari-api": {
"command": "uvx",
"args": [
"--python",
"3.12",
"mcp-ambari-api"
],
"env": {
"AMBARI_HOST": "host.docker.internal",
"AMBARI_PORT": "8080",
"AMBARI_USER": "admin",
"AMBARI_PASS": "admin",
"AMBARI_CLUSTER_NAME": "TEST-AMBARI",
"MCP_LOG_LEVEL": "INFO"
}
}
}
}{
"mcpServers": {
"mcp-ambari-api": {
"type": "streamable-http",
"url": "http://localhost:18001/mcp"
}
}
}Clients spell the "type" value differently: Claude Code and VS Code use "http", Cline uses "streamableHttp", and Roo Code uses "streamable-http". Claude Desktop does not accept a URL entry in its config file.
{
"mcpServers": {
"mcp-ambari-api": {
"type": "streamable-http",
"url": "http://localhost:18001/mcp",
"headers": {
"Authorization": "Bearer <YOUR_SECURE_SECRET_KEY>"
}
}
}
}Clients spell the "type" value differently: Claude Code and VS Code use "http", Cline uses "streamableHttp", and Roo Code uses "streamable-http". Claude Desktop does not accept a URL entry in its config file.
Settings → Tools → add the mcp-ambari-api tool address, e.g. http://localhost:8000/mcp-ambari-api