skycloak_assign_application_role
Assigns a Keycloak role to an application's service account, using role_client_id for client roles or omitting it for realm roles.
Instructions
Grant a role to an application's service account. Provide role_client_id for a client role, or omit it for a realm role.
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": {
"cluster_id": "<cluster_id>",
"realm": "<realm>",
"client_id": "<client_id>",
"role_name": "<role_name>"
},
"name": "skycloak_assign_application_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | the Keycloak realm name | |
| client_id | Yes | the application client ID receiving the role | |
| role_name | Yes | the role name | |
| cluster_id | Yes | the cluster ID | |
| role_client_id | No | client ID owning the role for a client role; omit for a realm role |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||