Skip to main content
Glama
mrz1880

mcp-keycloak-admin

Search users

keycloak_user_search
Read-onlyIdempotent

Search users in your Keycloak realm by username, email, or free-text to obtain user IDs for further management actions.

Instructions

Read-only. Searches users in the configured realm and returns a JSON array of matches, each with id, username, email and enabled flag. Use this to discover a user's id before calling id-based tools such as keycloak_user_get, keycloak_user_update or keycloak_user_delete. All filters are optional and combined; with no filters it returns the first page of users. Results are paginated and capped at 500 per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoMaximum number of users to return. Integer between 1 and 500. Defaults to 20 when omitted.
emailNoFilter by email address (e.g. "jane@example.com"). Optional; omit to not filter by email.
firstNoZero-based offset of the first result, for pagination. Integer >= 0. Defaults to 0 when omitted.
searchNoFree-text search across username, email, first and last name. Optional; omit to not apply a text search.
usernameNoFilter by exact or partial username (e.g. "jane"). Optional; omit to not filter by username.
Behavior5/5

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

Annotations indicate readOnlyHint, destructiveHint, idempotentHint. Description adds read-only, pagination cap, combined filters, first page behavior, beyond annotations.

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?

Four concise sentences, front-loaded with key attribute, each sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, description specifies return fields. Covers pagination, filter behavior, and use case for id discovery. Complete for a search tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with detailed parameter descriptions. The description adds higher-level usage context like filter combination and pagination defaults, which augments schema but schema already provides full parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it is read-only, searches users, returns a JSON array with specific fields (id, username, email, enabled flag). Distinguishes from siblings by mentioning use for discovering user id before id-based tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says 'Use this to discover a user's id before calling id-based tools' and explains all filters are optional and combined, pagination cap of 500, and default behavior.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrz1880/mcp-keycloak-admin'

If you have feedback or need assistance with the MCP directory API, please join our Discord server