mcp-ambari-api
v3.9.0Model 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).
| Parameter | Type | Description |
|---|---|---|
config_type | focus on one type's latest tag (other bulk params ignored except filter on keys) | |
filter | substring applied to type names OR property keys | |
include_values | boolean | include key=value pairs (bulk/full mode only) |
limit | integer | max number of types to output in bulk mode (0 = unlimited) |
max_chars | integer | truncate final output if exceeds |
service_filter | substring to restrict bulk types (ignored if config_type provided) | |
summarize | boolean | bulk 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
| Parameter | Type | Description |
|---|---|---|
service_name * | string | Name 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
| Parameter | Type | Description |
|---|---|---|
service_name * | string | Name 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…
| Parameter | Type | Description |
|---|---|---|
service_name * | string | Name 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…
| Parameter | Type | Description |
|---|---|---|
request_id * | string | ID 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…
| Parameter | Type | Description |
|---|---|---|
request_id * | string | ID of the Ambari request to inspect (integer string) |
host_filter | Optional hostname substring to restrict results to matching hosts. | |
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 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…
| Parameter | Type | Description |
|---|---|---|
host_name | Name 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.
| Parameter | Type | Description |
|---|---|---|
user_name * | string | The 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…
| Parameter | Type | Description |
|---|---|---|
cluster_name | Name of cluster (uses default if not specified) | |
definition_name | Filter by alert definition name | |
format | string | Output format - 'detailed', 'summary', 'compact', or 'groupedSummary' (current mode only) |
from_timestamp | Start timestamp in milliseconds (Unix epoch) - history mode only | |
host_name | Filter by specific host name | |
include_time_context | boolean | Add current time information for LLM natural language processing |
limit | Maximum number of alert entries to return | |
maintenance_state | Filter by maintenance state (ON, OFF) - current mode only | |
mode | string | "current" for active alerts, "history" for past events (default: "current") |
page_size | integer | Number of entries per page (default: 100) - history mode only |
service_name | Filter by specific service name (e.g., HDFS, YARN) | |
start_page | integer | Starting page number (default: 0) - history mode only |
state_filter | Filter by alert state (CRITICAL, WARNING, OK, UNKNOWN) | |
to_timestamp | End 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.
| Parameter | Type | Description |
|---|---|---|
cluster_name | ||
definition_name | ||
format | string | |
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.
| Parameter | Type | Description |
|---|---|---|
app_id | ||
host_filter | ||
include_dimensions | boolean | |
limit | integer | |
metric_name_filter | ||
search |
get_common_metrics_catalog Get Common Metrics Catalog
List supported metrics per appId (exact names only).
| Parameter | Type | Description |
|---|---|---|
app_id | ||
include_description | boolean | |
limit | integer | |
min_score | integer | |
search |
get_ambari_metric_apps Get Ambari Metric Apps
Return discovered AMS appIds, optionally with metric counts.
| Parameter | Type | Description |
|---|---|---|
include_counts | boolean | |
limit | integer | |
refresh | boolean |
get_hdfs_dfsadmin_report Get HDFS DFSAdmin Report
Produce a DFSAdmin-style capacity and DataNode report using Ambari metrics.
| Parameter | Type | Description |
|---|---|---|
cluster_name | ||
lookback_minutes | integer |
get_ambari_metrics Get Ambari Metrics
Fetch time-series metrics (exact metric names only) from Ambari Metrics.
| Parameter | Type | Description |
|---|---|---|
metric_names * | string | |
app_id | ||
duration | ||
end_time | ||
group_by_host | boolean | |
hostnames | ||
include_points | boolean | |
max_points | integer | |
precision | ||
start_time | ||
temporal_aggregator | ||
temporal_granularity |