aggregate
Compute server-side statistics (count, min, max, avg, sum) on Yerevan GIS layers, optionally grouped by a field, to avoid pulling raw rows.
Instructions
Server-side aggregation (count/min/max/avg/sum), optionally grouped by a field — e.g. count parcels per district, average sensor AQI, max reading date. Cheaper and more precise than pulling rows and summing client-side.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stat_type": "<stat_type>",
"field": "<field>"
},
"name": "aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field to aggregate (any field for count) | |
| where | No | 1=1 | |
| group_by | No | Optional field to group by | |
| layer_id | No | ||
| order_by | No | ||
| layer_key | No | ||
| stat_type | Yes | ||
| service_path | No |