create-protocol-mapper
Create a Keycloak protocol mapper to configure JWT organization claims for a client.
Instructions
Create a protocol mapper for a client (CRITICAL for JWT organization claims)
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>",
"clientId": "<clientId>",
"name": "<name>",
"protocol": "<protocol>",
"protocolMapper": "<protocolMapper>"
},
"name": "create-protocol-mapper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Protocol mapper name | |
| realm | Yes | Realm name | |
| config | No | Protocol mapper configuration | |
| clientId | Yes | Client ID | |
| protocol | Yes | Protocol (e.g., openid-connect) | |
| protocolMapper | Yes | Protocol mapper type (e.g., oidc-group-membership-mapper) |