Skip to main content
Glama
cloudsmithy

Easysearch MCP Server

by cloudsmithy

aggregate_simple

Perform simplified aggregation queries on Easysearch data to analyze field values using terms, averages, sums, minimums, maximums, cardinality, or statistical calculations.

Instructions

    简化的聚合查询
    
    参数:
        index: 索引名称
        field: 聚合字段
        agg_type: 聚合类型 terms/avg/sum/min/max/cardinality/stats/extended_stats
        size: 返回桶数量(仅 terms 有效)
    
    示例:
        aggregate_simple("orders", "status", "terms")
        aggregate_simple("orders", "amount", "avg")
        aggregate_simple("users", "email", "cardinality")  # 去重计数
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes
fieldYes
agg_typeNoterms
sizeNo
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/cloudsmithy/easysearch-mcp-server'

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