list_groups
Retrieve all groups in a Keycloak realm with optional search, pagination, and hierarchy population.
Instructions
List all groups for 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": "list_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| search | No | Search string for group name | |
| exact | No | If true, search is exact match | |
| first | No | Pagination offset | |
| max | No | Maximum results size | |
| briefRepresentation | No | If true, return brief representation | |
| q | No | Custom query for searching groups | |
| populateHierarchy | No | If true, populate group hierarchy |