Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_organization_groups

Lists groups in a Keycloak organization using realm and organization ID, with search, pagination, and hierarchy options. Requires Keycloak 26.6+.

Instructions

Get organization groups. Requires Keycloak 26.6+.

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>",
      "org_id": "<org_id>"
    },
    "name": "list_organization_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch by attributes, as space-separated key:value pairs
maxNoMaximum results to return
exactNoExact match for search
firstNoPagination offset
realmYesRealm name
org_idYesOrganization ID
searchNoSearch string filter
subGroupsCountNoInclude the number of subgroups
populateHierarchyNoPopulate the group hierarchy
briefRepresentationNoReturn a brief representation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it supplies only a minimum-version requirement. It does not state that this is a read-only listing, whether results are paginated by default, what the default max is, or how the hierarchy/populate options change output — all relevant for a 10-parameter query tool.

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?

Two short, front-loaded sentences with no filler or redundancy. It is efficient, though the brevity comes at the cost of substance rather than being a model of tight, information-dense writing.

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?

For a tool with 10 parameters, two required identifiers, no annotations, and no output schema, the description is far too thin. An agent would not know what the response contains or how pagination and hierarchy options affect it, and the sibling ambiguity is unresolved.

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 every parameter is already documented in the input schema, and the baseline of 3 applies. The description adds no extra meaning about filtering semantics, pagination defaults, or the interaction between q, search, and exact.

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 names a verb ("Get") and a resource ("organization groups"), so the basic operation is identifiable. However, it does not distinguish this tool from closely related siblings such as list_organization_group_children, list_organization_member_groups, or list_groups, and "Get" leaves it ambiguous whether this returns a paginated list or a single entity.

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 guidance on when to use this tool versus the many sibling list/get tools, and no statement of exclusions or scope (e.g., top-level groups only vs. nested). The only conditional context is a version prerequisite ("Requires Keycloak 26.6+"), which gates availability rather than selecting between alternatives.

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