MCP-Ambari-API
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AMBARI_HOST | No | Host address for the Ambari server | |
| AMBARI_PASS | No | Password for Ambari server authentication (e.g., "admin") | |
| AMBARI_PORT | No | Port number for the Ambari server | 8080 |
| AMBARI_USER | No | Username for Ambari server authentication (e.g., "admin") | |
| FASTMCP_HOST | No | Host address for HTTP transport | |
| FASTMCP_PORT | No | Port number for HTTP transport (also enables streamable-http mode when set) | |
| FASTMCP_TYPE | No | Transport type (stdio or streamable-http) | |
| AMBARI_LOG_LEVEL | No | Logging level for the MCP server (DEBUG, INFO, WARNING, ERROR) | |
| AMBARI_CLUSTER_NAME | No | Name of the target Ambari cluster (e.g., "TEST-AMBARI") |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| dump_configurationsA | Unified configuration introspection tool (supersedes get_configurations & list_configurations & dump_all_configurations). Modes:
Args: config_type: focus on one type's latest tag (other bulk params ignored except filter on keys) service_filter: substring to restrict bulk types (ignored if config_type provided) filter: substring applied to type names OR property keys summarize: bulk mode summary lines only (counts + sample keys, forces include_values False) include_values: include key=value pairs (bulk/full mode only) limit: max number of types to output in bulk mode (0 = unlimited) max_chars: truncate final output if exceeds |
| get_cluster_infoA | 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]:
[Required Usage Scenarios]:
Returns: Cluster basic information (success: formatted info, failure: English error message) |
| get_active_requestsA | 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]:
[Required Usage Scenarios]:
Returns: Active requests information (success: active request list, failure: error message) |
| get_cluster_servicesA | 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]:
[Required Usage Scenarios]:
[Absolutely Prohibited Scenarios]:
Returns: Cluster service list with status information (success: service list with status, failure: error message) |
| get_service_statusA | 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]:
[Required Usage Scenarios]:
Args: service_name: Name of the service to check (e.g., "HDFS", "YARN", "HBASE") Returns: Service status information (success: detailed status, failure: error message) |
| get_service_componentsA | 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]:
[Required Usage Scenarios]:
Args: service_name: Name of the service (e.g., "HDFS", "YARN", "HBASE") Returns: Service components detailed information (success: formatted list, failure: English error message) |
| get_service_detailsA | 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]:
[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) |
| start_all_servicesA | Starts 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) |
| stop_all_servicesA | Stops 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) |
| start_serviceA | Starts 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) - Success: Multi-line string with request ID, status, monitor URL, and instructions for progress tracking - Failure: English error message describing the problem |
| stop_serviceA | Stops 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]:
Args: service_name: Name of the service to stop (e.g., "HDFS", "YARN", "HBASE") Returns: Stop operation result (success: request info, failure: error message) - Success: Multi-line string with request ID, status, monitor URL, and instructions for progress tracking - Failure: English error message describing the problem |
| get_request_statusA | 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]:
[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) - Success: Multi-line string with request ID, status, progress, context, start/end time, and status description - Failure: English error message describing the problem |
| get_request_tasksA | 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]:
[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). - Success: header with request summary + per-task rows (task_id, host, role, status, duration) - Failure: English error message describing the problem |
| restart_serviceA | 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]:
[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) - Success: "Service '' restart operation completed successfully." - Failure: "Error: ..." with details |
| start_host_componentA | Starts 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) |
| stop_host_componentA | Stops 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) |
| restart_host_componentA | 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]:
[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_all_servicesA | Restarts 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) - Success: "All services restart operation completed successfully." - Failure: "Error: ..." with details |
| list_hostsA | Retrieves 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) |
| get_host_detailsA | 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]:
[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) |
| list_usersA | List all users in the Ambari system. Returns a formatted list of all users with their basic information. |
| get_userA | Get detailed information about a specific user. Args: user_name: The username to retrieve details for Returns: Detailed user information including profile, permissions, and authentication sources |
| get_alerts_historyA | 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]:
[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_current_alertsA | 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. |
| list_ambari_metrics_metadataC | Retrieve metric metadata from Ambari Metrics service with optional filters. |
| list_common_metrics_catalogC | List supported metrics per appId (exact names only). |
| list_ambari_metric_appsC | Return discovered AMS appIds, optionally with metric counts. |
| hdfs_dfadmin_reportC | Produce a DFSAdmin-style capacity and DataNode report using Ambari metrics. |
| query_ambari_metricsC | Fetch time-series metrics (exact metric names only) from Ambari Metrics. |
| get_prompt_templateA | Return the canonical English prompt template (optionally a specific section). Simplified per project decision: only a single English template file Args: section: (optional) section number or keyword (case-insensitive) e.g. "1", "purpose", "tool map". mode: (optional) if "headings" returns just the list of section headings with numeric indices. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| prompt_template_full | Return the full canonical prompt template. |
| prompt_template_headings | Return compact list of section headings. |
| prompt_template_section | Return a specific prompt template section by number or keyword. If 'section' is omitted: returns a concise help block plus a compact headings list instead of erroring. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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