Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

add_client_template_protocol_mappers_batch

Batch-create multiple protocol mappers for a Keycloak client scope by submitting the realm, client scope ID, and mapper definitions.

Instructions

Create multiple mappers.

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>",
      "mappers": "<mappers>"
    },
    "name": "add_client_template_protocol_mappers_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
mappersYesList of protocol mapper representations
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 and discloses nothing. It does not state that this is a mutating write, whether the batch is atomic or partial on failure, what permissions are required, whether duplicates are rejected, or what is returned on success.

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

Conciseness3/5

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

The single sentence is front-loaded and contains no filler, which is fine on its own terms. The problem is under-specification rather than wordiness: brevity here removes information an agent needs rather than tightening it.

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 batch mutation tool with nested object input, zero annotations, and no output schema needs substantial description to be safely invoked, and this provides none. An agent cannot determine scope (which template), failure semantics, or result format from three words.

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 the three parameters (realm, client_scope_id, mappers) are already documented in the schema and the baseline is 3. The description adds nothing about the shape of the mappers array elements or per-mapper required fields, which matters given the nested object structure.

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 multiple mappers" restates the tool name (add → create, batch → multiple, protocol mappers → mappers) without naming the resource being modified (a client template). With three near-identical siblings — add_client_protocol_mappers_batch and add_client_scope_protocol_mappers_batch — the description gives an agent no basis to tell which parent object this attaches mappers to.

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 alternatives. The most consequential decision an agent faces here — client template vs client vs client scope — is left entirely to inference from the tool name.

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