list_client_roles
Retrieve a list of roles assigned to a specific client in Keycloak. Use pagination and search filters to narrow results.
Instructions
List roles for a specific client.
Args:
client_id: Client database ID
first: Pagination offset
max: Maximum results size
search: Search string
realm: Target realm (uses default if not specified)
Returns:
List of client roles
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": {
"client_id": "<client_id>"
},
"name": "list_client_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_id | Yes | ||
| first | No | ||
| max | No | ||
| search | No | ||
| realm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |