Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_organization_group_children

Retrieve the subgroups of an organization group in Keycloak to navigate nested group hierarchies. Supports search, pagination, and optional subgroup counts; requires Keycloak 26.6+.

Instructions

Get subgroups of this organization group. 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>",
      "group_id": "<group_id>"
    },
    "name": "list_organization_group_children"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoThe maximum number of results that are to be returned. Defaults to 10
exactNoBoolean which defines whether the params "search" must match exactly or not
firstNoThe position of the first result to be returned (pagination offset)
realmYesRealm name
org_idYesOrganization ID
searchNoA String representing either an exact group name or a partial name
group_idYesOrganization group ID
subGroupsCountNoWhether to return the count of subgroups (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it usefully discloses a version dependency (Keycloak 26.6+), which is real availability information the schema cannot express. However it says nothing about pagination defaults (max defaults to 10), ordering, or what a subgroup entry contains.

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

Conciseness5/5

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

Two short sentences, zero waste, with the primary action front-loaded ahead of the version caveat. Nothing in the text is redundant or padded.

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 an 8-parameter paged list tool with no output schema, the description is thin: it omits that results are paginated with a default page size of 10 and gives no hint about the shape of returned subgroups. It is minimally adequate because the schema covers every parameter, but an agent gets no behavioral picture of the response.

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?

All 8 parameters are fully documented in the schema (100% coverage), so the schema already explains search/exact, first/max, and subGroupsCount semantics. The description adds no interpretation beyond the schema, which is the expected baseline for complete schemas.

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 and resource ("Get subgroups of this organization group") and names the parent entity, so the agent knows it is a nested read of an organization group. It does not explicitly contrast with the sibling list_group_children, leaving the organization-vs-realm distinction implicit rather than stated.

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 statement of when to use this over list_group_children or get_organization_group, and no exclusions or preconditions beyond a version gate. The only usage-relevant content is the Keycloak 26.6+ requirement, which is a prerequisite, not routing guidance.

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