Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_available_client_client_scope_mappings

Retrieve client-level roles available to associate with a client scope, so you can select which roles to map to that scope.

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_uuid": "<client_uuid>",
      "target_client_uuid": "<target_client_uuid>"
    },
    "name": "get_available_client_client_scope_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
target_client_uuidYesUUID of the target client whose roles are mapped

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. The word "Returns" weakly implies a read-only operation, but nothing states permission requirements, whether results are paginated or bounded, or what a role entry looks like. For a read tool with zero annotation coverage this is thin.

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 the opening sentence fragment "The available client-level roles" is redundant with the sentence that follows and reads like a truncated title. The structure is not front-loaded cleanly; the definition appears damaged rather than concise.

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?

Three required parameters and no output schema mean the description should clarify what the returned role collection contains and how "available" differs from granted mappings. Neither is addressed, leaving an agent unable to distinguish this tool from its many siblings or to predict its output.

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 three parameters (realm, client_uuid, target_client_uuid) are already documented in the schema. The description adds no meaning beyond the schema — notably it never clarifies the relationship between client_uuid and target_client_uuid, which is the genuinely confusing part of this tool.

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

Purpose3/5

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

The second clause ("Returns the roles for the client that can be associated with the client's scope") does give a verb and resource, and "can be associated" hints at not-yet-assigned roles. But the leading fragment "The available client-level roles" is grammatically broken and the phrase "client-level roles" is ambiguous given dozens of near-identical siblings (get_available_client_realm_scope_mappings, get_client_client_scope_mappings, etc.) that are not differentiated in any way.

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 explicit when-to-use statement, no prerequisites, and no named alternative. The available-vs-granted distinction that separates this from get_client_client_scope_mappings is only vaguely implied by the word "available"; an agent must guess which of ~30 sibling lookup tools applies.

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