keycloak_list_realm_roles
Fetch realm-level roles from a Keycloak realm, with optional name search and pagination. Returns core role fields to conserve context, ideal for role discovery and management workflows.
Instructions
List the realm-level roles defined in a realm.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "keycloak_list_realm_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Maximum number of results to return (1-500). Defaults to 50. | |
| first | No | Pagination offset — index of the first result to return (0-based). | |
| realm | No | Realm to operate on. Defaults to the server's configured realm (KEYCLOAK_REALM). | |
| search | No | Filter roles by name (infix match). | |
| briefRepresentation | No | Return only the core fields of each item. Keep this true when listing — full representations are large and a big realm will flood the context. |