Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_effective_client_realm_scope_mappings

Retrieves effective composite realm-level roles mapped to a client’s scope, so you can audit inherited permissions and verify access mappings.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
briefRepresentationNoif false, return roles with their attributes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full disclosure burden; it does convey that results are composite (expanded) rather than direct, which is meaningful behavior. It says nothing about permissions needed, pagination, or whether duplicates/inherited roles are merged, which matters for a lookup in a dense sibling family.

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. It is arguably too terse given the tool's placement among many similar-sounding siblings, 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?

Acceptable for a three-parameter read tool with fully documented params and no output schema, but with no output schema the description should say more about what the returned role representations look like. The absence of any sibling routing leaves an agent choosing among ~30 lookalike tools with only this one sentence.

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% and all three parameters (realm, client_uuid, briefRepresentation) are documented in the schema, so baseline is 3. The description adds no meaning beyond the schema, e.g. it never clarifies what client_uuid expects or how briefRepresentation interacts with the composite expansion.

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?

Specific verb ('Get') and resource ('effective (composite) realm-level roles for a client's scope'), and the parenthetical '(composite)' distinguishes the effective view from the plain get_client_realm_scope_mappings family. It does not explicitly name or contrast a sibling, so it stops short of a 5.

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?

No when-to-use or when-not-to-use guidance, and no routing to alternatives such as get_client_realm_scope_mappings (direct mappings) or get_available_client_realm_scope_mappings. The agent must infer from the sibling names alone that 'effective' covers composite/inherited roles.

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