count_user_groups
Count the number of groups a user belongs to in a Keycloak realm, with optional group name search.
Instructions
Get the number of groups a user belongs to.
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>",
"user_id": "<user_id>"
},
"name": "count_user_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| user_id | Yes | User ID | |
| search | No | Search string for group name |