Skip to main content
Glama
mlei06

Elasticsearch MCP (VSee Fork)

by mlei06

get_rating_distribution

Analyze provider and patient rating distributions over time to identify patterns and trends. Generate histograms with counts, percentages, and statistics, and compare ratings across subscriptions, accounts, or groups.

Instructions

Get rating distribution (histogram) for provider and/or patient ratings over a time period. Returns rating buckets with counts and percentages, plus statistics (average, min, max, total count). Supports grouping by subscription, account, or group for comparative analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ratingTypeYesType of rating to analyze: "provider", "patient", or "both"
bucketSizeNoRating bucket size (default: 1, e.g., 1 = 1-2, 2-3, 3-4, etc.)
startDateNoStart date. Format: ISO date (YYYY-MM-DD) or date math (now-30d, now-1y). Default: now-30d.
endDateNoEnd date. Format: ISO date (YYYY-MM-DD) or date math (now). Default: now.
accountNoOptional account name to filter by
groupNoOptional group name to filter by
subscriptionNoOptional subscription tier to filter by
groupByNoOptional grouping dimension (default: none). When set, returns separate distributions for each group value.none
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does well by describing the return format ('rating buckets with counts and percentages, plus statistics') and grouping capabilities. However, it doesn't mention important behavioral aspects like whether this is a read-only operation, potential rate limits, authentication requirements, or what happens with invalid parameters. The description adds useful context but leaves gaps in behavioral transparency.

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 efficiently structured in two sentences that front-load the core functionality and follow with supporting details. Every phrase earns its place by either specifying the tool's purpose, describing the output format, or explaining grouping capabilities. There's no wasted language or redundancy.

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

Completeness4/5

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

Given the tool's moderate complexity (8 parameters, no output schema, no annotations), the description does well by covering the core functionality, output format, and grouping capabilities. However, it could be more complete by mentioning the absence of an output schema (users must infer the return structure from the description) and providing more guidance on when this tool is most appropriate versus sibling tools.

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?

With 100% schema description coverage, the baseline is 3. The description adds value by explaining the grouping capability ('Supports grouping by subscription, account, or group for comparative analysis') and clarifying the statistical output ('average, min, max, total count'), which helps users understand the tool's capabilities beyond individual parameter documentation. However, it doesn't provide additional syntax or format details for parameters beyond what's in the schema.

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's purpose with specific verbs ('Get rating distribution', 'Returns rating buckets with counts and percentages, plus statistics') and identifies the resources involved ('provider and/or patient ratings'). It distinguishes this tool from siblings by focusing specifically on rating distribution analysis rather than entity finding, field indexing, or other breakdown types.

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 context through phrases like 'over a time period' and 'for comparative analysis', suggesting this tool should be used when temporal analysis or grouped comparisons are needed. However, it doesn't explicitly state when to use this tool versus alternatives like 'get_usage_summary' or 'get_visit_trends', nor does it mention any exclusions or prerequisites for usage.

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

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