Skip to main content
Glama
bpamiri

elasticsearch-mcp

by bpamiri

search_simple

Execute a simple query string search on an Elasticsearch index, supporting Lucene syntax for precise queries like 'status:error AND level:critical'.

Instructions

Execute a simple query string search.

Args: index: Index to search. q: Query string (supports Lucene syntax like "status:error AND level:critical"). size: Maximum results to return.

Returns: Search hits matching the query string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes
qYes
sizeNo

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, the description carries the full burden. It only mentions search hits are returned, but does not disclose read-only nature, side effects, authentication needs, or rate limits. Basic behavioral details are missing.

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 concise with a one-line purpose, a clear args block, and a returns line. It is front-loaded and contains no unnecessary words.

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 and the presence of an output schema, the description covers the core functionality. However, it lacks optional details like pagination, error behaviors, or performance considerations, which would enhance completeness.

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?

Schema coverage is 0%, so the description must compensate. It explains 'index' (Index to search), 'q' (Query string with Lucene syntax example), and 'size' (Max results). This adds meaningful context beyond property names.

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 'Execute a simple query string search,' which distinguishes it from sibling tools like 'es_search' that imply more complex searches. The verb 'search' and resource 'query string' are specific.

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 implies usage for simple query string searches with Lucene syntax support, but it does not explicitly state when to use this tool versus alternatives like 'es_search' or 'count_docs'. No exclusions or context are provided.

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