Skip to main content
Glama
mrz1880

mcp-keycloak-admin

Delete client

keycloak_client_delete
Destructive

Permanently delete a Keycloak client by its clientId. Requires confirm=true to execute; without confirmation the operation aborts to prevent accidental removal.

Instructions

Permanently delete a client from the realm. This is a destructive operation and is not idempotent: once deleted, deleting the same clientId again fails because it no longer exists. Requires explicit confirmation via confirm=true (otherwise it aborts without deleting). Use keycloak_client_get to verify the target first, and keycloak_client_update to merely disable a client instead of removing it. Returns a confirmation message, or a reason string when not deleted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be true to actually delete the client. When false or omitted (default), the operation is aborted and nothing is removed; this guards against accidental deletion.
clientIdYesThe clientId of the client to delete (the human-readable OAuth/OIDC identifier), not the internal UUID. Required.
Behavior5/5

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

Annotations already indicate destructiveHint=true and idempotentHint=false. The description adds important behavioral details: non-idempotent nature, need for explicit confirm=true, and return values (confirmation message or reason string). No contradictions with annotations.

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?

The description is two concise sentences. The first sentence states the purpose and permanent nature; the second adds behavioral details and comparisons. No fluff, every sentence earns its place.

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

Completeness5/5

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

Given the absence of an output schema, the description mentions return values (confirmation message or reason). It covers prerequisites (verify with get), safety (confirm parameter), and idempotency. Completely sufficient for an agent to use this tool correctly.

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

Parameters5/5

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

Schema coverage is 100% with descriptions for both parameters. The description adds clarity: clientId is the human-readable OAuth/OIDC identifier (not UUID), confirm must be true to actually delete, and explains the guard behavior. This enhances understanding beyond schema.

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

Purpose5/5

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

The description clearly states the tool's purpose: 'Permanently delete a client from the realm.' It specifies the verb (delete), resource (client), and permanence. The sibling tools include update and get, so it distinguishes itself effectively.

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

Usage Guidelines5/5

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

The description explicitly advises when to use alternatives: 'Use keycloak_client_get to verify the target first, and keycloak_client_update to merely disable a client instead of removing it.' It also explains the confirm parameter's role in preventing accidental deletion, providing clear usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrz1880/mcp-keycloak-admin'

If you have feedback or need assistance with the MCP directory API, please join our Discord server