Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

get_client

Retrieves a specific Keycloak client by database ID, optionally targeting a realm, so you can inspect its client configuration.

Instructions

Get a specific client by database ID.

Args:
    id: The client's database ID (not 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": {
      "id": "<id>"
    },
    "name": "get_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
realmNo

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_clientOutput"New value: +"get_clientDictOutput"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose one real behavior — realm falls back to a default when omitted — and states the return type, but says nothing about error behavior for a missing client or any permission/auth requirements for reading across realms.

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?

Short and front-loaded: the core purpose is the first line, with Args and Returns as scannable follow-ups. The docstring scaffolding adds minor structural overhead but no filler sentences.

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?

An output schema exists, so the one-line Returns is sufficient. Both parameters are explained and the default-realm behavior is noted; the only meaningful gap is not-found/error handling for a single-record lookup.

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 description coverage is 0%, so the description must compensate, and it does: it clarifies that 'id' is the database ID rather than the client_id (a real source of confusion given the sibling tools) and that 'realm' defaults when null. Both parameters get meaning beyond their bare titles, though neither gets a format or example.

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 ('Get a specific client') and scopes it to lookup by database ID. The parenthetical '(not client_id)' implicitly separates it from the sibling get_client_by_clientid, though that distinction appears in the Args block rather than the opening line.

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?

There is no explicit when-to-use statement, no mention of list_clients for discovery, and no guidance on what to do when the ID is unknown. The '(not client_id)' note hints that a different tool should be used for client_id lookups, but the agent must infer the alternative rather than being routed to it.

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