Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AMBARI_HOSTNoHost address for the Ambari server
AMBARI_PASSNoPassword for Ambari server authentication (e.g., "admin")
AMBARI_PORTNoPort number for the Ambari server8080
AMBARI_USERNoUsername for Ambari server authentication (e.g., "admin")
FASTMCP_HOSTNoHost address for HTTP transport
FASTMCP_PORTNoPort number for HTTP transport (also enables streamable-http mode when set)
FASTMCP_TYPENoTransport type (stdio or streamable-http)
AMBARI_LOG_LEVELNoLogging level for the MCP server (DEBUG, INFO, WARNING, ERROR)
AMBARI_CLUSTER_NAMENoName 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.

Apache Ambari (Hadoop) cluster operations through the Ambari REST API: cluster, service, component, and host status; service and component start/stop/restart; configuration lookup; request and task tracking; users; current and historical alerts; Ambari Metrics (AMS) time series; and HDFS capacity reports.

Scope

  • Every tool call is a real request to the configured Ambari server and cluster (AMBARI_CLUSTER_NAME unless a tool accepts cluster_name). Use tools for facts; never guess, simulate, or invent results, and do not tell the user to check the Ambari UI or run curl instead.

  • The server only reads live Ambari state and runs service operations. Generic Hadoop theory, tuning advice, log analysis, installs, and data deletion are out of scope; say so and offer a concrete status query.

  • Call only the tools needed; avoid repeating the same lookup.

Reporting results

  • Report what the tool returned. Never claim success after an error, an empty response, or a partial result; quote the error.

  • set_* tools (action=start/stop/restart) submit an Ambari request; accepted is not completed. Show the returned request ID near the top (Request ID: <id>, or Unknown if missing; never fabricate one) and point to get_request_status / get_request_tasks for progress.

Changing state

  • get_* tools only read; set_* tools change cluster state. If no set_* tools are listed, the server runs in read-only mode: say state changes are disabled instead of attempting them.

  • Run set_service_state / set_host_component_state only when the user explicitly asks for that action on a named service, component, or host. If the target is ambiguous ("restart it"), ask first.

  • set_all_services_state affects the whole cluster. Use them only when the user clearly asks for all services, confirm before running, and warn that live cluster state will change and may take several minutes.

  • If a required value (service, host, component, request ID) is missing or unclear, ask or look it up with a read tool (get_cluster_services, get_hosts, get_active_requests) instead of guessing.

Time ranges

  • For relative times ("yesterday", "last week"), call get_alerts_history with include_time_context=true, compute epoch-millisecond from_timestamp/to_timestamp from the returned current time, then call again with those values.

Metrics

  • get_ambari_metrics needs an explicit app_id and exact metric names. If unsure, find them first with get_ambari_metric_apps, get_common_metrics_catalog (search=), or get_ambari_metrics_metadata.

  • app_id mapping: Ambari Server=ambari_server, NameNode=namenode, DataNode=datanode, NodeManager=nodemanager, ResourceManager=resourcemanager, host-level=HOST. hostnames is optional.

  • Keep numbers distinct: configured values (get_configurations), capacity (get_hdfs_dfsadmin_report), and measured time series (get_ambari_metrics) are different things. State units, time window, and hosts. If no datapoints are returned, say so; never estimate.

Large results

  • Narrow before listing everything: get_configurations with config_type, filter, service_filter, or summarize=true; get_alerts_history with filters, limit, page_size, and start_page; get_request_tasks with status_filter (e.g. "not:COMPLETED", "FAILED") and host_filter. Say when output is truncated or only one page was shown.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
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

NameDescription
get_configurationsC

Unified configuration introspection tool (supersedes list_configurations & dump_all_configurations).

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]:

  • 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

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]:

  • 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 see "current tasks", "running tasks", "in progress operations"

  • When users mention "running", "in progress", "current activity"

  • When users ask about Ambari requests, operations, or tasks

  • When checking if any operations are currently running

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]:

  • 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 management requires current status overview

  • When real-time cluster information is absolutely necessary

[Absolutely Prohibited Scenarios]:

  • General Hadoop knowledge questions

  • Service installation or configuration changes

  • Log viewing or performance monitoring

  • Requests belonging to other cluster management tools

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]:

  • 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

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]:

  • 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

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]:

  • 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 configuration status

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]:

  • 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

  • When tracking bulk or individual service actions

  • When users mention request ID, operation status, or progress

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]:

  • 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 failed/are pending in an operation

  • When debugging a partially-failed bulk operation (e.g. "Start all services")

  • When users ask for task details, host-level progress, or remaining tasks

  • When request progress is near 100% but not complete and user wants to know what's left

get_hostsB

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

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]:

  • 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 request all hosts details or cluster-wide host information

  • When auditing or monitoring individual or all cluster nodes

  • When troubleshooting host-specific issues

get_usersA

List all users in the Ambari system.

Returns a formatted list of all users with their basic information.

get_userB

Get detailed information about a specific user.

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]:

  • 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 by time range with from_timestamp/to_timestamp

  • Support different output formats (detailed, summary, compact, groupedSummary for current)

  • History mode: Provide pagination support for large datasets

  • Provide current time context for LLM natural language time calculations

[Required Usage Scenarios]:

  • Current mode: When users request current alerts, active alerts, or alert status

  • Current mode: When monitoring immediate cluster health

  • Current mode: When investigating current issues or troubleshooting active problems

  • History mode: When users request alert history, past alerts, or historical alert data

  • History mode: When monitoring alert trends or analyzing alert patterns

  • History mode: When investigating past alert incidents or troubleshooting

  • When users mention alert status, current problems, cluster health, alert events, alert timeline, or alert logs

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.

get_ambari_metrics_metadataC

Retrieve metric metadata from Ambari Metrics service with optional filters.

get_common_metrics_catalogC

List supported metrics per appId (exact names only).

get_ambari_metric_appsB

Return discovered AMS appIds, optionally with metric counts.

get_hdfs_dfsadmin_reportB

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

get_ambari_metricsC

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 20 tools

Disambiguation3/5

Several tools overlap heavily: get_service_status, get_service_details, and get_service_components all return service state information, and get_cluster_services also lists services with status. Similarly get_hosts and get_host_details (when called without a host_name) return the same data, and get_current_alerts is explicitly a deprecated duplicate of get_alerts_history with mode=current. Descriptions help but boundaries require careful reading.

Naming Consistency5/5

Every tool follows a predictable get_<noun> snake_case pattern (get_service_status, get_cluster_info, get_request_tasks, get_ambari_metrics). No style mixing or inconsistent verb forms across the 20 tools.

Tool Count3/5

At 20 tools the surface is on the heavy side for a monitoring API, and the count is inflated by redundancy (deprecated get_current_alerts, overlapping service/host tools). The breadth of Ambari concepts (services, hosts, requests, alerts, metrics, users) does justify many tools, but consolidation could trim the set.

Completeness3/5

Read/inspection coverage is broad—services, components, hosts, requests, tasks, alerts, metrics, and users are all reachable. However there are no mutation operations at all (no start/stop/restart service, no config update, no user create/del), which are core to an Ambari management API, leaving notable gaps.

Maintenance

ActivityActive
ResponsivenessNo recent community issues