mcp-ambari-api

v3.9.0
mcp-ambari-api Checked 16 hours ago Published 4 days ago

Model Context Protocol (MCP) server for Apache Ambari API integration.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_configurations Get Configurations

Unified configuration introspection tool (supersedes list_configurations & dump_all_configurations).

ParameterTypeDescription
config_typefocus on one type's latest tag (other bulk params ignored except filter on keys)
filtersubstring applied to type names OR property keys
include_valuesbooleaninclude key=value pairs (bulk/full mode only)
limitintegermax number of types to output in bulk mode (0 = unlimited)
max_charsintegertruncate final output if exceeds
service_filtersubstring to restrict bulk types (ignored if config_type provided)
summarizebooleanbulk mode summary lines only (counts + sample keys, forces include_values False)

get_cluster_info Get Cluster Info

Retrieves 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]: - Retrieve cluster name, version, provisioning state, and security type - Provide formatted output for LLM automation and cluster monitoring [Required Usage Scenarios]: - When users request cluster info, status, or summary - When monitoring cluster health or auditing cluster properties - When users mention cluster overview, Ambari cluster, or cluster details

get_active_requests Get Active Requests

Retrieves 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]: - Retrieve active/running Ambari operations (IN_PROGRESS, PENDING status) - Show real-time progress of ongoing operations - Monitor current cluster activity [Required Usage Scenarios]: - When users ask for "active requests", "running operations", "current requests" - When users ask for "request list", "operation list", "task list" - When users want to…

get_cluster_services Get Cluster Services

Retrieves 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]: - Retrieve cluster service list with status via Ambari REST API - Provide service names, current state, and cluster information - Include detailed link information for each service - Display visual indicators for service status [Required Usage Scenarios]: - When users mention "service list", "cluster services", "Ambari services" - When cluster status check is needed - When service man…

get_service_status Get Service Status

Retrieves 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]: - Retrieve specific service status via Ambari REST API - Provide detailed service state information (STARTED, STOPPED, INSTALLING, etc.) - Include service configuration and component information [Required Usage Scenarios]: - When users ask about specific service status (e.g., "HDFS status", "YARN state") - When troubleshooting service issues - When monitoring specific service health

ParameterTypeDescription
service_name *stringName of the service to check (e.g., "HDFS", "YARN", "HBASE")

get_service_components Get Service Components

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

ParameterTypeDescription
service_name *stringName of the service (e.g., "HDFS", "YARN", "HBASE")

get_service_details Get Service Details

Retrieves 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]: - Retrieve service state, component list, and configuration availability - Provide formatted output for LLM automation and troubleshooting [Required Usage Scenarios]: - When users request detailed service info or breakdown - When troubleshooting service health or auditing service setup - When users mention service details, service summary, or configurat…

ParameterTypeDescription
service_name *stringName of the service to check (e.g., "HDFS", "YARN", "HBASE")

get_request_status Get Request Status

Retrieves 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]: - Query the status, progress, and context of a request by its ID - Provide detailed status (PENDING, IN_PROGRESS, COMPLETED, FAILED, etc.) - Show progress percentage and timing information - Return actionable status for automation and LLM integration [Required Usage Scenarios]: - When users ask for the status or progress of a specific operation/request - When monitoring or troubleshooting Ambari operations - Wh…

ParameterTypeDescription
request_id *stringID of the Ambari request to check (int)

get_request_tasks Get Request Tasks

Retrieves 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]: - List all tasks (host/role/status/timing) belonging to a request - Filter tasks by status (e.g. FAILED, IN_PROGRESS) or exclude a status (not:COMPLETED) - Filter tasks by hostname to inspect a specific host - Identify which hosts/roles are failing, pending, or still running [Required Usage Scenarios]: - When users want to know which hosts or roles…

ParameterTypeDescription
request_id *stringID of the Ambari request to inspect (integer string)
host_filterOptional hostname substring to restrict results to matching hosts.
status_filterOptional 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 unfinish…

get_hosts Get Hosts

Retrieves the list of hosts in the Ambari cluster. [Tool Role]: Dedicated tool for listing all hosts registered in the Ambari cluster. [Core Functions]: - Query Ambari REST API for host list - Return host names and API links - Provide formatted output for LLM automation and cluster management [Required Usage Scenarios]: - When users request cluster host list or host details - When auditing or monitoring cluster nodes

get_host_details Get Host Details

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 r…

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

get_users Get Users

List all users in the Ambari system. Returns a formatted list of all users with their basic information.

get_user Get User

Get detailed information about a specific user.

ParameterTypeDescription
user_name *stringThe username to retrieve details for

get_alerts_history Get Alerts History

Retrieve 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]: - Current mode: Retrieve current alerts for entire cluster, specific service, or specific host - History mode: Retrieve alert history for entire cluster, specific service, or specific host - Support filtering by alert state (CRITICAL, WARNING, OK, UNKNOWN) - Support filtering by definition name - Current mode: Support filtering by maintenance state (ON, OFF) - History mode: Support filtering…

ParameterTypeDescription
cluster_nameName of cluster (uses default if not specified)
definition_nameFilter by alert definition name
formatstringOutput format - 'detailed', 'summary', 'compact', or 'groupedSummary' (current mode only)
from_timestampStart timestamp in milliseconds (Unix epoch) - history mode only
host_nameFilter by specific host name
include_time_contextbooleanAdd current time information for LLM natural language processing
limitMaximum number of alert entries to return
maintenance_stateFilter by maintenance state (ON, OFF) - current mode only
modestring"current" for active alerts, "history" for past events (default: "current")
page_sizeintegerNumber of entries per page (default: 100) - history mode only
service_nameFilter by specific service name (e.g., HDFS, YARN)
start_pageintegerStarting page number (default: 0) - history mode only
state_filterFilter by alert state (CRITICAL, WARNING, OK, UNKNOWN)
to_timestampEnd timestamp in milliseconds (Unix epoch) - history mode only

get_current_alerts Get Current Alerts

Retrieve 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.

ParameterTypeDescription
cluster_name
definition_name
formatstring
host_name
maintenance_state
service_name
state_filter

get_ambari_metrics_metadata Get Ambari Metrics Metadata

Retrieve metric metadata from Ambari Metrics service with optional filters.

ParameterTypeDescription
app_id
host_filter
include_dimensionsboolean
limitinteger
metric_name_filter
search

get_common_metrics_catalog Get Common Metrics Catalog

List supported metrics per appId (exact names only).

ParameterTypeDescription
app_id
include_descriptionboolean
limitinteger
min_scoreinteger
search

get_ambari_metric_apps Get Ambari Metric Apps

Return discovered AMS appIds, optionally with metric counts.

ParameterTypeDescription
include_countsboolean
limitinteger
refreshboolean

get_hdfs_dfsadmin_report Get HDFS DFSAdmin Report

Produce a DFSAdmin-style capacity and DataNode report using Ambari metrics.

ParameterTypeDescription
cluster_name
lookback_minutesinteger

get_ambari_metrics Get Ambari Metrics

Fetch time-series metrics (exact metric names only) from Ambari Metrics.

ParameterTypeDescription
metric_names *string
app_id
duration
end_time
group_by_hostboolean
hostnames
include_pointsboolean
max_pointsinteger
precision
start_time
temporal_aggregator
temporal_granularity