Skip to main content
Glama
bpamiri

elasticsearch-mcp

by bpamiri

connect

Establishes connection to an Elasticsearch cluster using environment variables, returning connection status and cluster information.

Instructions

Connect to the Elasticsearch cluster.

Uses configuration from environment variables (ES_HOST, ES_API_KEY, etc.).

Returns: Connection status and cluster information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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 only states the tool connects and returns status, but omits important traits such as idempotency, error handling (e.g., failure if already connected), or authentication requirements.

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

Conciseness4/5

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

The description is short (three sentences) and structured into purpose, usage, and return sections. It avoids redundancy, though it could be slightly more compact by combining the first two lines.

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

Completeness3/5

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

Given the tool's simplicity (no parameters, output schema present), the description covers the essential purpose and usage. However, it lacks contextual completeness for an AI agent, such as noting that connection must precede other operations, or specifying the output schema details.

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 input schema has zero parameters, so schema coverage is 100%. The description adds value by explaining that configuration comes from environment variables, which is beyond the schema and helps the agent understand how to prepare the context.

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

Purpose5/5

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

The description clearly states 'Connect to the Elasticsearch cluster,' using a specific verb and resource. It uniquely identifies the tool as the connection establisher, distinguishing it from siblings like 'disconnect' and other query/management tools.

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

Usage Guidelines3/5

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

The description mentions using environment variables (ES_HOST, ES_API_KEY) for configuration, implying prerequisites. However, it lacks explicit guidance on when to use this tool (e.g., before any other Elasticsearch operations) and does not mention alternatives or when not to use it.

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

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