Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_available_client_template_client_scope_mappings

Retrieves client-level roles available to assign to a specified client scope, helping you configure client scope mappings.

Instructions

The available client-level roles Returns the roles for the client that can be associated with the client's 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>",
      "client_scope_id": "<client_scope_id>",
      "client_uuid": "<client_uuid>"
    },
    "name": "get_available_client_template_client_scope_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
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?

With no annotations, the description carries the full burden. It implies a read operation via "Returns" and "available" but does not state read-only semantics, whether results reflect assigned-only or all-assignable scopes, pagination, or the response shape. Its roles-oriented wording further obscures what is actually being returned.

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?

It is short, but the second sentence merely rephrases the first in different terminology (roles vs. scope mappings), so the brevity comes at the cost of clarity rather than being earned conciseness.

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?

A three-required-parameter tool with no annotations and no output schema needs the description to disambiguate template-based vs. client-based and available vs. effective behavior. Instead the description leaves all of that unresolved and describes a different resource type.

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_uuid, and client_scope_id are already documented in the schema. The description adds no meaning beyond that and never mentions which identifier scopes the template, which is the key ambiguity for this tool family; baseline 3 applies.

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 says it "Returns the roles for the client that can be associated with the client's scope," which describes a roles-listing operation, while the tool name indicates available client-scope mappings for a client template. With ~30 near-identical sibling names differing only by template/client/scope/effective/available, this ambiguity is not resolved at all.

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?

The word "available" hints at a discovery-before-assignment pattern, but there is no explicit when-to-use statement, no mention of the corresponding add_* tools, and no guidance distinguishing this from get_client_template_client_scope_mappings or the effective_* variants.

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