count_groups
Count the number of groups in a Keycloak realm with optional search and top-level only filters.
Instructions
Get the number of groups in the realm.
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": {
"realm": "<realm>"
},
"name": "count_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| search | No | Search string for group name | |
| top | No | If true, only count top-level groups |