Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_user_profile_metadata

Retrieve a realm's user profile metadata, including attribute definitions and groups, to inspect or validate Keycloak user profile configuration.

Instructions

Get the user profile metadata (attribute definitions and groups) of the realm.

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

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations, so the description carries the burden, but this is a read-only 'Get' of schema/config data — the verb implies a safe, non-mutating operation. It does not state whether metadata is realm-wide only or requires permissions, and no return shape is given, though the parenthetical identifies the payload contents (attribute definitions and groups).

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?

Single short sentence with the key scoping detail front-loaded and the parenthetical used economically to define 'metadata'. No wasted words, though the parenthetical is the only added substance.

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?

For a one-parameter read tool with full schema coverage, the definition is close to sufficient, but with no annotations and no output schema an agent still cannot tell what the returned structure looks like or whether it exposes only definitions or also group hierarchies.

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?

Only one parameter and schema coverage is 100% ('Realm name'), so baseline would be 4; the description adds the scoping context that the metadata is 'of the realm', reinforcing that the realm param selects the configuration namespace.

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?

Specific verb+resource: 'Get the user profile metadata (attribute definitions and groups) of the realm.' It clarifies what metadata means via the parenthetical, which distinguishes it from get_user_profile (which returns the actual profile values).

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 when-to-use guidance and no reference to alternatives such as get_user_profile, get_user_unmanaged_attributes, or update_user_profile. The agent must infer from the name and parenthetical what this schema-definition tool is for.

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