Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_organization_members

Retrieve members of a Keycloak organization by realm and organization ID, with optional search, filtering, and pagination. Requires Keycloak 25+.

Instructions

List members of an organization. Requires Keycloak 25+.

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_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMaximum results to return
exactNoBoolean which defines whether the param 'search' must match exactly or not
firstNoPagination offset
realmYesRealm name
org_idYesOrganization ID
searchNoA String representing either a member's username, e-mail, first name, or last name
membershipTypeNoThe membership type
briefRepresentationNoBoolean to return either a brief or a full user representation. If not specified, the brief representation is returned by default

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?

No annotations are supplied, so the description carries the full behavioral burden, and it does add one genuinely non-schema fact: the Keycloak 25+ requirement. However, it says nothing about authorization needs, pagination defaults or limits, or default result ordering. For an 8-parameter listing tool with zero annotation coverage, that leaves meaningful behavioral gaps.

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, purpose stated first and the constraint second, with no filler. Every clause carries information.

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?

The parameter surface is fully documented by the schema and there is no output schema requiring explanation, so the remaining burden is modest. Still, an agent gets no hint about result shape, pagination defaults, or how the filter parameters combine. Adequate but not generous for a tool of this complexity.

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 all eight parameters (search, exact, membershipType, briefRepresentation, first, max, realm, org_id) are already documented in the schema. The description adds no extra meaning, such as how 'exact' interacts with 'search' or what membershipType values are valid. Baseline 3 applies when the schema does all the work.

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 and resource: 'List members of an organization.' An agent immediately knows this is a read/list operation scoped to organization membership. It stops short of distinguishing itself from close siblings such as count_organization_members, list_organization_group_members, or list_group_members, which would be needed for 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?

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative. The only added condition is the version prerequisite ('Requires Keycloak 25+'), which is a compatibility note rather than usage direction. Selection between this and the sibling member-listing tools is left entirely to inference from names.

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