summarize_features
Group rows by fields and aggregate values to answer how many or how much per category without geoprocessing.
Instructions
Group rows by one or more fields and aggregate -- the fast way to answer 'how many / how much per category' without geoprocessing.
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": {
"layer_name": "<layer_name>",
"group_by": "<group_by>"
},
"name": "summarize_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum groups to return. | |
| where | No | SQL where clause. | |
| group_by | Yes | Field(s) to group by. | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| value_field | No | Numeric field to sum/average per group. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |