Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

update_client_template_protocol_mapper

Update a protocol mapper's configuration within a Keycloak client scope to change how claims or attributes are mapped into tokens and user info responses.

Instructions

Update the mapper.

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>",
      "client_scope_id": "<client_scope_id>",
      "mapper_id": "<mapper_id>",
      "mapper_data": "<mapper_data>"
    },
    "name": "update_client_template_protocol_mapper"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
mapper_idYesProtocol mapper ID
mapper_dataYesProtocol mapper representation
client_scope_idYesClient scope ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

D1.9/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing: not whether mapper_data replaces the whole representation or merges, not whether required permissions apply, and not whether the change is reversible. This is a mutation tool with nested object input and no behavioral context whatsoever.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short but that brevity is under-specification rather than economy; a single sentence fragment conveys no information an agent could not get from the name. There is no front-loaded scope statement, no structure, and nothing that earns its place beyond the name itself.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four required parameters, a nested object payload, no annotations, and no output schema, the definition needs to explain mutation semantics and payload expectations. It explains none of these, leaving the agent with essentially nothing beyond the identifier.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters (realm, client_scope_id, mapper_id, mapper_data) are documented in the schema itself and the baseline of 3 applies. The description adds no meaning beyond that, and notably says nothing about the structure or replace-vs-merge semantics of the nested mapper_data object.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Update the mapper." only restates the operation already encoded in the tool name (update_client_template_protocol_mapper); it adds no resource scoping, no statement that it operates on a client template's protocol mapper rather than a client or client-scope mapper. Against siblings like update_client_protocol_mapper and update_client_scope_protocol_mapper, the description provides zero differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of prerequisites (existing mapper must already exist), and no pointer to the create/get/delete siblings. An agent must infer everything from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools