count_features
Count features in an ArcGIS FeatureServer layer, optionally filtered by a WHERE clause.
service_url: full layer URL ending in /FeatureServer/<n>. token: only for private layers.
Returns JSON: {"ok": true, "count": ..., "name": ..., "geometry": ...}.
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": {
"service_url": "<service_url>"
},
"name": "count_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | ||
| where | No | 1=1 | |
| service_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |