Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_clients

Retrieve and filter Keycloak clients in a realm using search, client ID, pagination, and viewable-only options for client administration.

Instructions

List all clients in the realm.

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>"
    },
    "name": "list_clients"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch by attributes, as space-separated key:value pairs
maxNoMaximum number of results
firstNoPagination offset
realmYesRealm name
searchNowhether this is a search query or a getClientById query
clientIdNoClient ID filter
viewableOnlyNoWhether to return only viewable clients

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only implies a read-only listing. It says nothing about permissions needed, how `max`/`first` paginate, what happens when `search=true` changes the semantics, or what the response contains.

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

Conciseness3/5

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

A single sentence with no wasted words, but it is terse to the point of under-specification for a tool with seven parameters and a dual list/search mode. The brevity does not buy clarity here.

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 seven-parameter tool with no annotations and no output schema, the description omits the search-versus-list distinction, pagination behavior, and return shape. An agent could call it, but not confidently or correctly in filtering scenarios.

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 defines all seven parameters and the baseline is 3. The description adds no meaning beyond the schema and its claim of returning "all" clients actually conflicts with the available filters.

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

Purpose3/5

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

"List all clients in the realm" names a concrete verb and resource, so the basic operation is clear. However, "all" is misleading given seven filtering/pagination parameters and a `search` flag that reframes the call as a search query, and nothing distinguishes it from the many client-scoped siblings like list_client_scopes or list_client_roles.

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?

No when-to-use guidance is given: no mention of when to set `search` true versus false, when to supply `clientId` instead of paginating, or which sibling tool to use for client sub-resources. The agent must infer the intended call pattern entirely from parameter 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