Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_client_template_scope_mappings_all

Retrieve all scope mappings for a client scope in a specified realm and client scope ID, enabling review and administration of Keycloak client scope permissions.

Instructions

Get all scope mappings 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>"
    },
    "name": "get_client_template_scope_mappings_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_scope_idYesClient scope ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it discloses almost nothing. It does not say whether "all" implies no pagination, whether the result includes effective or inherited mappings, whether it requires admin privileges, or what the response contains.

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 a single short sentence with no wasted padding, which is structurally fine, but the brevity reflects under-specification rather than economy. Nothing is front-loaded beyond a generic verb.

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?

With no annotations, no output schema, and an ambiguous position among many similar mapping tools, the definition should clarify scope of "all" and return shape. As written it is not sufficient for reliable selection or invocation.

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

Parameters2/5

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

Schema coverage is 100%, so the baseline would be 3, but the description actively works against the schema by referring to "the client" while the parameters are realm and client_scope_id. That mismatch risks the agent supplying a client identifier where a client-scope identifier is required.

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

Purpose2/5

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

The description names a verb ("Get") and a resource ("scope mappings"), but the phrase "for the client" is inaccurate: the tool is a client-template tool whose required parameter is client_scope_id, not a client. With siblings like get_client_scope_mappings_all, get_client_template_client_scope_mappings, and get_client_template_realm_scope_mappings, the word "all" is left undefined, so an agent cannot tell whether it aggregates both client-scope and realm-scope mappings or something else.

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 when-to-use guidance, no prerequisite, and no named alternative despite a dense family of near-identical siblings (available/effective/granted, client_scope vs realm_scope variants). The agent is left to guess from the tool name alone.

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