Skip to main content
Glama
mcp-keycloak

mcp-keycloak

List clients

list_clients
Read-onlyIdempotent

List OAuth/OIDC clients configured in a Keycloak realm, with optional clientId filtering and secret fields redacted. Use it to inspect client registrations without exposing credentials.

Instructions

List OAuth/OIDC clients configured in a realm. Client secrets, registration access tokens, rotated secrets, private keys and other secret-shaped fields are replaced with [REDACTED].

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
realmYesRealm name
clientIdNoFilter by clientId

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely non-obvious behavioral information: secret-shaped fields (client secrets, registration access tokens, rotated secrets, private keys) come back as [REDACTED], which warns the agent not to expect usable credentials in the output. It does not mention pagination, result limits, or ordering, which leaves some 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 tight sentences with zero filler. The purpose is front-loaded and the redaction caveat follows immediately, so an agent gets the operation and its most surprising output trait in the first read.

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

Completeness4/5

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

For a simple two-parameter read tool with full annotation coverage and full schema coverage, the definition covers purpose and the output-redaction caveat, which is the main thing an agent could otherwise get wrong. Missing only secondary details such as pagination or result volume, which keeps it from a top score.

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 both parameters (realm, clientId) are already documented, and the baseline of 3 applies. The description reinforces that results are scoped to a realm but adds no syntax, matching behavior, or semantics for clientId beyond what the schema states.

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 gives a specific verb ('List') plus a precise resource ('OAuth/OIDC clients configured in a realm'), which is clearly distinct from sibling resources like users, groups, and realm roles. It stops short of explicitly contrasting itself with any named sibling, but the resource noun alone is specific enough for an agent to disambiguate.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for enumerating clients rather than fetching a single one. There is no explicit when-to-use versus alternatives statement, no note on when to use the clientId filter instead of listing everything, and no mention of the sibling tools that list other resource types.

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