Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

get_client_by_clientid

Retrieves a specific Keycloak client by client ID, optionally scoped to a target realm, so you can inspect its configuration and properties.

Instructions

Get a specific client by client ID.

Args:
    client_id: The client's client_id
    realm: Target realm (uses default if not specified)

Returns:
    Client object

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": {
      "client_id": "<client_id>"
    },
    "name": "get_client_by_clientid"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmNo
client_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.3.0
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "additionalProperties": true,
      -    "title": "Result",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"get_client_by_clientidOutput"New value: +"get_client_by_clientidDictOutput"
  2. First observed

TDQS

C2.8/5.0
Behavior2/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. It implies a read via 'Get' and mentions a default realm fallback, but says nothing about required permissions, what happens when the client does not exist or the realm is wrong, or whether the returned object includes secrets. For a lookup tool with zero annotation coverage this is thin.

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

Conciseness4/5

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

Front-loaded one-line purpose followed by clearly labeled Args and Returns sections. Nearly every line earns its place; the client_id line is the sole redundancy.

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?

An output schema exists, so the definition need not explain return values, and the 'Returns: Client object' line is sufficient. But for a lookup tool with 0% schema coverage and a near-identical sibling, the definition leaves the default-realm semantics and the get_client distinction unexplained.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and largely does not. 'The client's client_id' merely restates the parameter name, and the realm note ('uses default if not specified') duplicates the null default already visible in the schema without naming what the default realm actually is.

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 and resource: retrieve one client identified by client ID. That is unambiguous on its own. However, a sibling named get_client exists and the description makes no attempt to distinguish which lookup path applies when, so an agent cannot fully disambiguate from the text alone.

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 at all: no statement of when this lookup is preferred over get_client, no prerequisites, and no failure conditions. The only hint is the phrase 'by client ID', which implies a lookup key but never says what other key get_client might use.

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