Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_organization_identity_provider_groups

Retrieve organization groups for a specified identity provider in Keycloak, with search, pagination, and representation options to manage group access. Requires Keycloak 26.6+.

Instructions

Returns organization groups for the identity provider. 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>",
      "alias": "<alias>"
    },
    "name": "list_organization_identity_provider_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoA query to search for group attributes, in the format 'key1:value1 key2:value2'
maxNoThe maximum number of results to return
aliasYesIdentity provider alias
exactNoIf true, perform exact match on the search parameter
firstNoThe position of the first result (pagination offset)
realmYesRealm name
org_idYesOrganization ID
searchNoA string to search for in group names
subGroupsCountNoIf true, include subgroups count in the response
briefRepresentationNoIf true, return brief representation; otherwise return full representation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses a version gate (Keycloak 26.6+), which is real context an agent needs, but it says nothing about permissions, read-only nature beyond the implicit 'Returns', or how pagination/search interact across the ten parameters.

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 wasted wording. The brevity is efficient, though it borders on under-specification for a ten-parameter tool.

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 ten-parameter, three-required-parameter tool with no annotations and no output schema, the description is far too thin. It does not clarify what distinguishes an identity-provider organization group from a plain organization group, nor does it describe pagination or search semantics that the parameters imply.

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 the schema already documents every parameter including q, search, exact, first, max, and briefRepresentation. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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 concrete verb and resource: returns organization groups scoped to an identity provider. An agent can grasp the subject, but it does not differentiate this from close siblings such as list_organization_groups or list_organization_member_groups, so the boundary between them must be inferred.

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?

The only guidance is a version prerequisite ('Requires Keycloak 26.6+'). There is no statement of when to choose this tool over list_organization_groups or list_organization_member_groups, and no exclusions or context conditions are given.

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