Skip to main content
Glama
Nam088

mcp-server-db

by Nam088

es_search

Run a search query against an Elasticsearch index using Query DSL. Specify index and optional query parameters.

Instructions

Run a search query against an index using Elasticsearch Query DSL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoMaximum number of hits to return.
indexYesIndex name.
queryNoElasticsearch Query DSL object, e.g. { "match": { "title": "foo" } }. Defaults to match_all.
connectionIdNoId of the elasticsearch connection to use, from databases.config.yml. Optional when only one elasticsearch connection is configured.
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It only states the tool runs a search query, without indicating read-only status, permission requirements, pagination behavior, or potential performance impacts. This is insufficient for a tool with no annotation support.

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, clear sentence with no unnecessary words. It efficiently conveys the core purpose without extraneous detail.

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?

Given the lack of output schema and annotations, the description is too minimal. It omits important context such as result format, pagination, performance implications, and how it compares to related tools like es_count or es_get_doc. This impairs the agent's ability to use the tool effectively.

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

Parameters3/5

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

The input schema has high description coverage (100%) with detailed descriptions for each parameter, so the baseline is 3. The tool description adds no extra context beyond what is already in the schema, e.g., it does not elaborate on the Query DSL object or connectionId usage.

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 the action ('Run a search query'), the resource ('against an index'), and the method ('using Elasticsearch Query DSL'). It effectively distinguishes this tool from sibling search tools like es_get_doc (single document retrieval) and es_count (count only).

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 complex queries with Query DSL, but does not provide explicit guidance on when to choose es_search over alternatives such as es_get_doc for single documents or es_count for counts. No exclusions or preconditions are mentioned.

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/Nam088/mcp-database-server-v2'

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