Get Field Statistics
get_field_statisticsCompute aggregate statistics (count, sum, mean, min, max, stdev) for numeric fields, or count and distinct values for non-numeric fields in a QGIS layer.
Instructions
Compute aggregate statistics (count, sum, mean, min, max, stdev) for a numeric field. For non-numeric fields returns count and distinct values.
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_id": "<layer_id>",
"field_name": "<field_name>"
},
"name": "get_field_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | Yes | ||
| field_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||