Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_effective_client_scope_realm_scope_mappings

Retrieve the effective composite realm-level roles for a client scope to verify which permissions it grants.

Instructions

Get effective (composite) realm-level roles for a client scope'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>"
    },
    "name": "get_effective_client_scope_realm_scope_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_scope_idYesClient scope ID
briefRepresentationNoif false, return roles with their attributes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/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. It does disclose meaningful behavior beyond the schema by saying results are 'effective (composite)', i.e. aggregated rather than directly assigned, but it is silent on permissions, whether the composite resolution is recursive, and how missing or empty scope mappings are reported.

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

Conciseness4/5

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

A single front-loaded sentence with no filler. The phrasing 'a client scope's scope' is slightly ambiguous and reads awkwardly, which keeps it short of a 5, but nothing is wasted.

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

Completeness3/5

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

For a simple three-parameter read tool with full schema coverage and no annotations or output schema, the description covers the essentials. It stops short of explaining what 'effective' resolution entails or what the response contains, which matters because no output schema documents the return shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description adds a little genuine meaning by clarifying that the returned roles are realm-level roles resolved through the given client scope, which helps interpret client_scope_id beyond the bare 'Client scope ID' schema text.

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

Purpose4/5

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

States a specific verb ('Get') and a precise resource: effective (composite) realm-level roles belonging to a client scope's scope. The qualifiers 'effective', 'realm-level', and 'client scope' meaningfully separate it from sibling families such as the client-role or client-scope-mapping variants, though it never names an alternative directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no named alternatives. The word 'effective' implicitly signals that this aggregates composite/assigned roles rather than raw direct mappings (e.g. get_client_scope_realm_scope_mappings), but the agent must infer that contrast from sibling names, not from the description.

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