Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_organization_member

Retrieve a specific member of a Keycloak organization by realm, organization ID, and user ID; requires Keycloak 25+.

Instructions

Get a specific member 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>",
      "user_id": "<user_id>"
    },
    "name": "get_organization_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
org_idYesOrganization ID
user_idYesUser ID

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 provided, the description carries the full behavioral burden; it usefully discloses the 'Requires Keycloak 25+' environment constraint, which an agent could not infer from the schema. However, it says nothing about read-only semantics, error behavior when the member or realm does not exist, or return content.

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 with zero filler; the purpose is front-loaded and the version constraint follows immediately. Nothing 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?

The tool is simple (three required string parameters, no nesting), and the description covers what it fetches plus the version requirement. Since no output schema exists, the description should ideally indicate the shape of the returned member object, and it gives no failure-mode context.

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 realm, org_id and user_id are already documented in the schema. The description adds no meaning about how these identifiers are scoped or obtained, leaving this at the baseline for a fully covered schema.

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 ('Get') and resource ('a specific member of an organization'), which distinguishes it from sibling list/count operations such as list_organization_member_groups and count_organization_members. It does not explicitly name an alternative, but the singular 'a specific member' makes the single-record scope unambiguous.

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 when-to-use guidance beyond the implied singular lookup, and no mention of prerequisites such as needing the member to already exist or how this differs from list_member_organizations. The Keycloak version note is a constraint, not usage 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