Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_client_template_client_scope_mappings

Retrieves the roles mapped to a client scope for a specific client, so you can inspect which roles that client receives through the scope.

Instructions

Get the roles associated with a client's scope Returns roles for the client.

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>"
    },
    "name": "get_client_template_client_scope_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
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 carries the full behavioral burden, yet it discloses almost nothing. It does not confirm the operation is a read-only lookup, does not explain whether 'roles' is the return shape (versus resolved mappings), and says nothing about permissions, pagination, or errors.

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?

It is short, which is good, but the second sentence ("Returns roles for the client.") is redundant and the first sentence's wording drifts from the tool name. There is no wasted verbosity, but also no front-loaded precision.

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?

This is a read-only lookup with three fully documented parameters and no output schema, so modest description length is defensible. Still, given the dense sibling family, the definition should clarify what 'roles' means here and how it differs from the effective/available variants, which it does not.

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% (realm, client_uuid, client_scope_id each documented), so the schema does the parameter work. The description adds no meaning about how these three identifiers interact or which scope the returned roles are drawn from, leaving it at the baseline.

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?

A verb and resource are present ("Get the roles associated with a client's scope"), but the resource is muddled: the name says client-template client-scope mappings while the description says roles for a client's scope. The second sentence merely restates the first, so an agent still cannot tell exactly what this returns relative to the many near-identical siblings.

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 statement of when to use this tool, and no exclusions. With siblings like get_available_*, get_effective_*, and the add_/remove_ variants, the missing distinction between 'current', 'available', and 'effective' mappings is a real gap, which the definition does nothing to close.

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