Skip to main content
Glama
cr7258

Elasticsearch MCP Server

get_cluster_health

Check Elasticsearch cluster health status to monitor node availability, shard distribution, and overall system performance for proactive maintenance.

Instructions

Returns basic information about the health of the cluster.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler function for 'get_cluster_health' that delegates to the search client's get_cluster_health method.
    def get_cluster_health() -> Dict: """Returns basic information about the health of the cluster.""" return self.search_client.get_cluster_health()
  • The ClusterClient helper method that calls the underlying OpenSearch/Elasticsearch client API to retrieve cluster health information.
    def get_cluster_health(self) -> Dict: """Get cluster health information from OpenSearch.""" return self.client.cluster.health()
  • The registration of the tool via @mcp.tool() decorator within the ClusterTools.register_tools method.
    @mcp.tool() def get_cluster_health() -> Dict: """Returns basic information about the health of the cluster.""" return self.search_client.get_cluster_health()

Latest Blog Posts

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/cr7258/elasticsearch-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server