Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

remove_client_template_client_scope_mappings

Removes client-level roles from a client scope in a Keycloak realm, cleaning up mappings so those roles no longer apply to the client.

Instructions

Remove client-level roles from the client's scope.

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>",
      "client_scope_id": "<client_scope_id>",
      "client_uuid": "<client_uuid>",
      "roles": "<roles>"
    },
    "name": "remove_client_template_client_scope_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
rolesYesList of role representations
client_uuidYesClient UUID
client_scope_idYesClient scope ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It implies a destructive mutation but does not specify required permissions, whether removal is idempotent, what happens to existing mappings, or any error conditions.

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?

The description is a single front-loaded sentence with no wasted wording. Its conciseness comes at the cost of specificity, but structurally it is efficient.

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 four-required-parameter mutation tool with a nested roles object, no output schema, and no annotations, the one-sentence description is materially incomplete. It does not explain the client-template context or enough behavioral detail for reliable invocation.

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 the schema already documents all four parameters. The description adds slight meaning by indicating that 'roles' are being removed from a scope, but it does not clarify the roles object format or the interaction between client_scope_id and client_uuid beyond the schema.

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

Purpose3/5

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

The description states a specific verb+resource pattern ('Remove client-level roles from the client's scope'), but it omits the 'client template' dimension present in the tool name and does not distinguish this operation from the many sibling tools for clients, client scopes, and realm scopes. An agent can infer it removes role mappings, but not precisely which mapping category.

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 tool versus the numerous sibling add/remove/get tools for client template client scope mappings. No prerequisites, exclusions, or alternative selection cues are provided.

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

Deploy Server

Other Tools