Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_authz_resource_server_settings

Export a client resource server's authorization settings, including resources, scopes, and policies, from Keycloak for review or backup.

Instructions

Export the authorization settings (resources, scopes, policies) of a client's resource server.

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": "get_authz_resource_server_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/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. "Export" and the get_ prefix imply a non-mutating read, but the description never says so outright, nor does it describe the export format, whether the dump is complete or truncated, or any permission requirements. For a read-only tool this is a moderate gap rather than a critical one.

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?

A single sentence with the verb and payload contents front-loaded and zero filler. Nothing could be removed without losing information.

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?

There is no output schema, so the description should ideally characterize what the export returns and in what form; it names the three setting categories, which helps, but leaves the response shape, size, and any pagination behavior unexplained. Adequate for a two-parameter read tool, but not complete.

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% for both parameters, so the baseline is 3. The phrase "of a client's resource server" adds a little meaning by linking client_uuid to the target client, but realm and client_uuid semantics are already fully documented in the schema.

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 pairs a specific verb ("Export") with a specific resource ("authorization settings of a client's resource server") and enumerates the payload contents (resources, scopes, policies). That distinguishes it reasonably from sibling get_authz_resource_server, which by name alone fetches a single resource server rather than its settings bundle, though the description never states that contrast explicitly.

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?

"Export" implies the intended use case, bulk retrieval for backup or migration, but the description gives no explicit when-to-use condition, no prerequisites, and no pointer to the nearby import_authz_resource_server or get_authz_resource_server alternatives. Usage is inferable rather than stated.

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