Skip to main content
Glama
Percona-Lab

VISTA Data MCP Server

by Percona-Lab

search_elasticsearch

Run Elasticsearch queries against download and package analytics to analyze downloads by product, OS, package type, or date range.

Instructions

Run an Elasticsearch query (JSON DSL) against download/package data.

Use this for product download data: downloads by product, package type, OS, components, growth rates, EOL packages, Pro-builds.

Args: index: The Elasticsearch index to search. query_body: A JSON string containing the Elasticsearch query DSL. Supports match, term, range, bool, aggregations, etc. size: Max documents to return (default 500).

Examples: - {"query": {"match": {"product": "postgresql"}}, "size": 20} - {"size": 0, "aggs": {"by_package": {"terms": {"field": "package_type"}}}} - {"query": {"range": {"date": {"gte": "2025-01-01"}}}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo
indexYes
query_bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It notes supports for Elasticsearch query features (match, term, range, bool, aggregations) and a default size of 500, which adds useful context. However, it does not mention read-only nature, error handling, rate limits, or what happens if the query is invalid, leaving some uncertainty.

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 well-structured: a one-line definition, a brief use-case paragraph, and clearly labeled Args with examples. Every sentence adds value, and the format makes it easy to scan. It is appropriately sized for the tool's complexity.

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?

The tool is complex (arbitrary Elasticsearch DSL), yet the description covers use cases, parameters, and examples. An output schema is present, so return values need not be described. The inclusion of example queries and aggregations makes the description sufficiently complete for an agent to select and invoke the tool correctly.

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

Parameters5/5

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

The input schema has no descriptions (0% coverage), but the description fully compensates by explaining each parameter: index, query_body, and size, including the effective default (500). Examples demonstrate valid query_body structures, providing meaningful guidance beyond the schema's bare type declarations.

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 tool runs Elasticsearch queries (JSON DSL) against download/package data, with a specific verb ('Run') and resource. It also lists concrete use cases (downloads by product, package type, etc.), which distinguishes it from sibling tools like query_clickhouse or es_list_indices.

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?

The description explicitly says 'Use this for product download data' and lists example uses, providing clear context for when to choose this tool. It does not explicitly state when not to use it or name alternatives, but the sibling tool names (e.g., query_clickhouse) imply the boundary. Lacks explicit exclusions, so it falls shy of a 5.

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/Percona-Lab/vista-data-mcp'

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