Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

generate_client_example_saml_response

Creates a JSON example SAML response payload for a specified Keycloak client and realm, helping test or debug SAML integrations. Requires Keycloak 26.7+.

Instructions

Create JSON with an example SAML response as payload. Requires Keycloak 26.7+.

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_client_example_saml_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
scopeNoScope filter
userIdNoID of the user to evaluate the scope for
audienceNoAudience of the SAML response
client_uuidYesClient UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the output format and a Keycloak version requirement, but says nothing about permissions, side effects, SAML-client prerequisites, error behavior, or how the generated response is scoped.

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 two short sentences with no wasted wording, and the purpose is front-loaded before the version prerequisite.

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 five-parameter generation tool with no annotations and no output schema, the definition covers the basic action and output type. It remains thin on when to use it, how parameters shape the response, and what the returned JSON contains.

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 coverage is 100%, so all five parameters are already documented in the input schema. The description does not add meaning about how realm, client_uuid, scope, userId, or audience affect the generated SAML response, so baseline 3 applies.

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 states a specific verb and resource: create JSON containing an example SAML response. It distinguishes the tool by token type from siblings like generate_example_access_token and generate_example_id_token, though it does not explicitly name alternatives.

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 only guidance is a version prerequisite, 'Requires Keycloak 26.7+'. It gives no context on when to choose this over other example-generation tools or when it is not applicable.

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