Skip to main content
Glama
paoloamato2

Keycloak MCP Server

by paoloamato2

add_client_scope_realm_scope_mappings

Add realm-level roles to a client scope to extend its permissions.

Instructions

Add realm-level roles to a client scope's scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
realmYesRealm name
client_scope_idYesClient scope ID
rolesYesList of role representations
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It only states 'Add' without explaining whether roles are appended or overwritten, what permissions are required, or any side effects (e.g., if roles already exist). Critical details about the operation are missing.

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 a single, concise sentence with 7 words. Every word is necessary and there is no fluff. It efficiently communicates the core action and resource.

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?

Given the absence of annotations and output schema, and the complexity of the operation (adding roles via a nested object), the description is too minimal. It does not cover behavior, response format, or how it fits among related tools like add_client_realm_scope_mappings. The agent is left without sufficient context for correct usage.

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

Parameters4/5

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

The schema has 100% coverage with basic descriptions. The description adds value by clarifying that the roles parameter refers to 'realm-level roles,' which is not explicitly stated in the schema's 'List of role representations.' This enhances understanding beyond the schema alone.

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 verb 'Add' and the resource 'realm-level roles to a client scope's scope.' It differentiates from sibling tools like add_client_realm_scope_mappings (client-level) and add_client_scope_client_scope_mappings (client-level roles) by specifying 'realm-level roles,' making the purpose specific and unambiguous.

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?

No guidance is provided on when to use this tool versus alternatives such as add_client_realm_scope_mappings or get_client_scope_realm_scope_mappings. There are no prerequisites, exclusions, or context given to help the agent decide, despite a large set of sibling add tools.

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/paoloamato2/keycloak-mcp-server'

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