Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

import_authz_resource_server

Imports authorization settings—resources, scopes, and policies—into a Keycloak client's resource server. Use it to configure fine-grained authorization; requires Keycloak 26.5+.

Instructions

Import authorization settings (resources, scopes, policies) into a client's resource server. Requires Keycloak 26.5+.

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

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
resource_server_dataYesResource server representation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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 discloses only the Keycloak 26.5+ requirement; it does not say whether existing resources/scopes/policies are replaced or merged, whether the operation is destructive or idempotent, what permissions are needed, or what happens on partial failure.

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?

Two short sentences, action front-loaded, with the constraint following. Nothing is redundant, though the version note could be phrased as a precondition more explicitly.

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?

This is a mutation tool taking a nested object payload, with no annotations and no output schema. The description should explain replace-vs-merge semantics and error behavior for the import; those gaps matter for an agent deciding whether calling it is safe.

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?

Schema coverage is 100%, so the baseline is 3. The description adds real meaning by expanding the nested 'resource_server_data' beyond the schema's bare 'Resource server representation' to say it carries resources, scopes, and policies, and it frames client_uuid as the target resource server's owner.

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 and resource ('Import authorization settings ... into a client's resource server') and enumerates the payload contents (resources, scopes, policies). It is clear what the tool does, though it never distinguishes itself from siblings like update_authz_resource_server or partial_import_realm.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'Import' plus the sibling set ('create_', 'update_', 'get_' variants) implies this is the bulk-load path rather than single-object editing, and the version prerequisite is useful context. However, there is no explicit when-to-use / when-not-to-use statement or named alternative.

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