Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

delete_client

Permanently remove a Keycloak client from a specified realm using its database ID, helping clean up unused identity and access configurations.

Instructions

Delete a client.

Args:
    id: The client's database ID
    realm: Target realm (uses default if not specified)

Returns:
    Status message

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": "delete_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: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "additionalProperties": {
      -      "type": "string"
      -    },
      -    "title": "Result",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"delete_clientOutput"New value: +"delete_clientDictOutput"
  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 and does little with it. It never states that deletion is irreversible, whether dependent artifacts (client roles, secrets, service account) are also removed, or what permissions are required. "Returns: Status message" is the only behavioral hint and is largely redundant with the existing output schema.

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?

The purpose line is front-loaded and wastes nothing, but the docstring-style Args/Returns block is mechanical, and the Returns line duplicates what the output schema already provides. Sizing is fine; the structure is boilerplate rather than purposeful.

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 destructive, permission-sensitive operation with zero annotation coverage, the definition omits the details an agent most needs: irreversibility, cascade behavior, required privileges, and error conditions. The output schema covers return values, but the destructive semantics remain undocumented.

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 0%, so the description must compensate, and it partly does: it clarifies that `id` is the client's database ID (not the clientId string) and that `realm` falls back to a default when omitted. It adds no format, validation, or lookup guidance for obtaining the ID.

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?

"Delete a client" names a specific verb and resource, and the resource (client) is clearly distinct from sibling delete_group, delete_user, delete_realm_role. It stops short of any explicit contrast with update_client or get_client, so it is clear but not sibling-differentiated.

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 guidance on when to use this versus update_client or list_clients, no prerequisites, and no warning about irreversibility. The agent must infer everything about appropriate invocation context from the one-line purpose statement.

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