Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_effective_group_realm_role_mappings

Retrieves a group's effective composite realm-level role mappings, so you can inspect inherited and directly assigned realm roles by realm and group ID.

Instructions

Get effective (composite) realm-level role mappings for a group.

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>",
      "group_id": "<group_id>"
    },
    "name": "get_effective_group_realm_role_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
group_idYesGroup ID
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 provided, so the description carries the full burden. It does add real context by labeling the result 'effective (composite)', signalling that inherited roles are folded in, but it says nothing about permissions required, whether results are paginated, or how the mappings are structured on return.

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 efficient sentence with the key qualifier ('effective (composite)') front-loaded and no filler. It is arguably too terse for a tool with several near-identical 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?

For a simple read-only lookup with full schema coverage this is minimally adequate, but it omits any description of the return value (a list of role representations) and does not clarify the practical meaning of 'effective' versus directly assigned mappings. A reader unfamiliar with the domain would need to consult sibling tools or docs.

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% with all three parameters documented, including briefRepresentation's effect on returned attributes, so the schema does the heavy lifting. The description adds no additional parameter meaning beyond what the schema already states, which is the baseline case for a 3.

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?

The description names a specific verb (Get) and a precise resource (effective/composite realm-level role mappings for a group). The qualifier 'effective (composite)' distinguishes it in spirit from the direct-mapping sibling get_group_realm_role_mappings, but it never explicitly contrasts with siblings, so an agent must infer the distinction from naming conventions.

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 guidance, no prerequisites, and no named alternative. The word 'effective' hints that this includes inherited/composite roles rather than directly assigned ones, but the agent is left to infer when to pick this over get_group_realm_role_mappings or get_effective_group_client_role_mappings.

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