create-client-scope-protocol-mapper
Creates a protocol mapper for a Keycloak client scope, defining how claims are mapped into tokens for OpenID Connect and other protocols.
Instructions
Create a protocol mapper for a client scope
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>",
"clientScopeId": "<clientScopeId>",
"name": "<name>",
"protocol": "<protocol>",
"protocolMapper": "<protocolMapper>"
},
"name": "create-client-scope-protocol-mapper"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Protocol mapper name | |
| realm | Yes | Realm name | |
| config | No | Protocol mapper configuration | |
| protocol | Yes | Protocol (e.g., openid-connect) | |
| clientScopeId | Yes | Client scope ID | |
| protocolMapper | Yes | Protocol mapper type |