Skip to main content
Glama
idoyudha

mcp-keycloak

by idoyudha

add_realm_default_group

Assign a group as default for new users in a Keycloak realm. Provide group ID and optional realm to set automatic group membership.

Instructions

Add a default group to the realm.

Args:
    group_id: Group ID to add as default
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYes
realmNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavioral traits. It only states the action ('Add') but does not mention that this is a write operation, what side effects occur (e.g., affects realm configuration), required permissions, or idempotency. The agent is left guessing about consequences.

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 concise, with 2-3 sentences covering purpose, parameters, and return. It is front-loaded with the action. However, it could be slightly restructured to be even more direct (e.g., 'Adds a group to the realm's default groups') without losing clarity.

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 lack of annotations and output schema presence, the description is incomplete. It explains parameters and return but omits crucial context: whether the operation is idempotent, error conditions (e.g., invalid group ID), and what 'default group' means in the realm configuration. A more complete description would help the agent use the tool safely.

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 description coverage is 0%, so the description must add meaning. It explains 'group_id' as 'Group ID to add as default' and 'realm' as 'Target realm (uses default if not specified)', which adds some context beyond the schema titles. However, it does not clarify format, accepted values, or behavior when the group already exists.

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

Purpose4/5

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

The description clearly states the action ('Add a default group') and the resource ('to the realm'), which distinguishes it from sibling tools like 'remove_realm_default_group' and 'get_realm_default_groups'. However, the phrasing could be slightly more precise: it could explicitly say 'Add a group to the realm's default groups list'.

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. There is no mention of prerequisites (e.g., group must exist) or when not to use it (e.g., if group is already default). The description lacks context to help an agent choose correctly among sibling 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/idoyudha/mcp-keycloak'

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