Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

generate_example_userinfo

Generate example userinfo to evaluate Keycloak client scopes using a realm, client UUID, and optional scope or user ID.

Instructions

Generate example userinfo for evaluating client scopes.

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_uuid": "<client_uuid>"
    },
    "name": "generate_example_userinfo"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
scopeNoScope to evaluate
userIdNoID of the user to evaluate for
client_uuidYesClient UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/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. It implies a non-mutating sample-generation operation, but says nothing about whether the client or user must already exist, whether the call has side effects, or what the returned userinfo contains for a 4-parameter tool.

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?

A single front-loaded sentence with zero padding. It is efficient but so thin that conciseness shades into under-specification.

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 two required plus two optional parameters, the description should clarify what the generated userinfo represents and how scope/userId alter it. It leaves the agent unable to predict the result or know the prerequisites.

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%, so all four parameters (realm, scope, userId, client_uuid) are already documented in the schema. The description adds no meaning beyond that baseline, which is the expected baseline-3 case rather than a gap.

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?

States a specific verb+resource ("Generate example userinfo") plus a qualifier ("for evaluating client scopes") that conveys intent. It does not distinguish this tool from closely related siblings such as generate_example_access_token or generate_example_id_token, so an agent must infer which token type fits its case.

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?

The phrase "for evaluating client scopes" hints at a use case but gives no explicit when-to-use, when-not-to-use, or alternative-selection guidance. Nothing tells the agent to prefer an access-token or id-token example generator under other circumstances.

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