Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_effective_client_client_scope_mappings

Retrieve effective client roles associated with a client's scope in a realm. Use it to inspect scope-based role mappings for access review or configuration.

Instructions

Get effective client roles Returns the roles for the client that are 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_effective_client_client_scope_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
target_client_uuidYesUUID of the target client whose roles are mapped
briefRepresentationNoif false, return roles with their attributes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries full behavioral burden. It implies a read via 'Get' and hints at an aggregation semantic ('effective'), but it does not state whether results are computed/inherited, whether permissions are required, or how the effective set is derived from client scopes.

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 and front-loaded, but the first clause ('Get effective client roles') reads as a truncated fragment and largely restates the tool name. The second sentence does the real work, so there is minor waste without being bloated.

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?

There is no output schema and no annotations, yet the description does not specify the return shape (role list vs. mapping list) or how effective mappings are aggregated. For a four-parameter tool embedded in a dense family of similarly named siblings, this leaves too much for the agent to infer.

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 coverage is 100% and all four parameters are documented in the schema, including the briefRepresentation flag. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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 description states a verb and resource ('Get effective client roles ... roles for the client that are associated with the client's scope'), but the wording is inconsistent with the tool name (mappings vs. roles) and never distinguishes it from the many near-identical siblings like get_effective_client_realm_scope_mappings or get_available_client_client_scope_mappings. An agent can infer it is a read of effective client-scope-derived roles, but the namespace-specific semantics remain ambiguous.

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 at all. The description does not explain when to choose this 'effective' variant over the 'available' variants, the plain get_client_client_scope_mappings, or the realm-scope counterpart, which is the primary selection difficulty given the sibling catalog.

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