Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_client_template_mappers_by_protocol

Retrieve client template mappers by protocol for a realm and client scope to inspect protocol-specific mappings and support configuration reviews.

Instructions

Get mappers by name for a specific protocol.

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>",
      "protocol": "<protocol>"
    },
    "name": "list_client_template_mappers_by_protocol"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
protocolYesProtocol name (e.g. openid-connect, saml)
client_scope_idYesClient scope ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it never states that this is a read-only listing, what the result contains, whether results are paginated, or what happens for an unknown protocol. The phrase 'by name' hints at some lookup semantics that are never explained.

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?

One short sentence, appropriately sized and front-loaded, so there is no verbosity problem. However, the brevity is achieved by stripping the client-template qualifier and inserting the puzzling 'by name', making the sentence shorter but less accurate.

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

Completeness2/5

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

With three required parameters, no annotations, and no output schema, the description should do more work: it should pin the client-template scope and hint at the returned mapper objects. As written, an agent cannot confidently distinguish this from the adjacent protocol-mapper listing tools.

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?

All three parameters are fully documented in the schema (realm, client_scope_id, protocol with an example), so the baseline is 3. The description adds nothing beyond the schema: 'for a specific protocol' merely restates the protocol parameter and says nothing about how client_scope_id scopes the lookup.

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?

The description reduces the tool to 'Get mappers ... for a specific protocol' and drops the 'client_template' qualifier that is the whole point of the name. It also says 'by name' where the tool is keyed by protocol, so the stated purpose is both under-specified and slightly misleading against a large family of sibling mappers-listing tools.

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 guidance on when to use this versus list_client_template_protocol_mappers, list_client_mappers_by_protocol, or list_client_scope_mappers_by_protocol. The reader must infer the distinction from tool names alone, which the instructions warn is not a valid basis.

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