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()
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a read operation ('Returns'), but doesn't mention authentication requirements, rate limits, performance impact, or what constitutes 'basic information' versus detailed health data. The description is minimal and lacks important operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that gets straight to the point with zero wasted words. It's appropriately sized for a zero-parameter tool and front-loads the essential information about what the tool does.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a cluster health monitoring tool with no annotations and no output schema, the description is insufficient. It doesn't explain what 'health' means in this context, what metrics or statuses are returned, or how to interpret the results. Given the complexity of cluster health assessment and the lack of structured documentation, the description should provide more context about what constitutes 'basic information' and what the agent can expect to learn.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters with 100% schema description coverage, so the schema already fully documents the parameter situation. The description appropriately doesn't waste space discussing non-existent parameters, earning a baseline 4 for parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Returns') and resource ('basic information about the health of the cluster'). It distinguishes from some siblings like 'get_cluster_stats' by focusing specifically on 'health' rather than general statistics, though the distinction could be more explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'get_cluster_stats' or other monitoring tools. It doesn't mention prerequisites, timing considerations, or any context for when health information is needed versus other cluster data.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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