Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

evaluate_authz_policies

Assess a client resource server's authorization policies with a Keycloak realm, client UUID, and evaluation request to determine access decisions.

Instructions

Evaluate authorization policies for 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>",
      "evaluation_request": "<evaluation_request>"
    },
    "name": "evaluate_authz_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
evaluation_requestYesPolicy evaluation request representation

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 disclosure burden and bears it poorly: it does not say whether evaluation is read-only/non-mutating, whether it requires elevated permissions, whether a policy decision is persisted, or what form the result takes. Only the word "Evaluate" hints at a non-destructive read, which is thin for an unannotated 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 no wasted words. It is efficient, though its brevity borders on under-specification rather than optimal concision.

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?

The tool takes a nested request object and returns an evaluation result with no output schema, yet the description explains nothing about the request payload shape, the decision semantics, or the response. For a nested-object evaluation tool with zero annotations, this is materially incomplete.

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 three parameters (realm, client_uuid, evaluation_request) are already documented in the schema, warranting the baseline 3. The description adds no meaning beyond the schema, and for the nested evaluation_request object it offers nothing about expected structure or semantics.

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 ("Evaluate") with a specific resource ("authorization policies") and scope ("for a client's resource server"). Clear enough to act on, but it never distinguishes itself from the sibling evaluate_authz_permissions, so an agent cannot tell which evaluation tool to pick.

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?

Provides no when-to-use guidance, no prerequisites (e.g. that the client must already have policies), and no mention of the obvious alternative evaluate_authz_permissions. The agent is left to infer everything about selection.

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