Skip to main content
Glama
csimi

elastic-mcp

by csimi

Run an ES|QL query

esql
Read-only

Run ES|QL queries on Elasticsearch to filter, aggregate, and sort data. Returns results with column metadata and row objects.

Instructions

Run an ES|QL (Elasticsearch Query Language) query and return the result as column metadata plus row objects. Good for filtering, STATS aggregations, and sorting expressed as a piped query string, e.g. FROM idx | WHERE status == "open" | STATS count = COUNT(*) BY host | SORT count DESC. Requires Elasticsearch 8.11+.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe complete ES|QL query string, e.g. `FROM my-index | LIMIT 10`
Behavior4/5

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

Annotations include readOnlyHint=true, and the description confirms it runs a read query. No contradictions. Additional behavioral details are not necessary given the annotations.

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?

Two sentences that are front-loaded with the purpose, then an example and a requirement. Every word adds value; no redundancy.

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

Completeness5/5

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

Given the single parameter, full schema coverage, and readOnlyHint annotation, the description is complete. It mentions the output format (column metadata plus row objects), so no need for an output schema.

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?

Only one parameter 'query' with 100% schema description coverage. The description adds value by providing an example query format and syntax, exceeding the baseline of 3.

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?

Clearly states the tool runs an ES|QL query and returns results as column metadata plus row objects. Includes an example. Distinguishes from sibling tools like search or get_document by specifying the ES|QL query language.

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

Usage Guidelines4/5

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

Provides an example query and a requirement (Elasticsearch 8.11+). Does not explicitly state when not to use, but the context and example give adequate guidance for an agent to decide.

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/csimi/elastic-mcp'

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