Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

create_client_template_protocol_mapper

Create a protocol mapper for a Keycloak client template by supplying the realm, client scope ID, and mapper data.

Instructions

Create a 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_data": "<mapper_data>"
    },
    "name": "create_client_template_protocol_mapper"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
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 disclosure burden and provides none of it. It says nothing about required permissions or auth, whether creation fails on duplicates, what happens if client_scope_id is invalid, or what the call returns (and there is no output schema to fall back on).

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?

The description is three words long, which is concise but through under-specification rather than efficiency. There is no front-loaded expansion of the purpose, and the space that could hold useful context is simply empty.

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?

A mutation tool with zero annotations, no output schema, and a nested object parameter requires far more explanation than one sentence fragment. An agent has no basis to know what a valid mapper_data payload looks like or what a successful creation implies.

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 realm, client_scope_id, and mapper_data are already documented at a baseline level. The description adds no meaning beyond those fields – notably it does not explain the structure or required keys of the nested mapper_data object, which is the hardest parameter to populate.

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?

"Create a mapper" only restates the tool name (create_client_template_protocol_mapper) without adding specificity. It does not say what a protocol mapper is bound to (a client template scope) or how the result differs from create_client_protocol_mapper or create_client_scope_protocol_mapper, so the agent cannot distinguish this tool from at least five similarly named siblings.

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 prerequisites, and no mention of the alternative create tools it sits beside. The verb "create" implies the general intent, but nothing tells an agent when a template-level mapper is the right choice over client-level or scope-level mappers.

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