Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_client_policies

Retrieves client policies for a Keycloak realm, with an option to include global policies, so you can inspect configured client policy settings.

Instructions

Get the client policies of the realm.

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

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
include-global-policiesNoInclude global policies

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and delivers very little. It does not say whether this requires admin permissions, whether global policies are inherited or merged, how the 'include-global-policies' flag changes results, or whether the call is side-effect free. 'Get' implies a read, but that is an inference, not a disclosure.

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 short sentence with the resource and scope front-loaded and no wasted words. It is efficient, though the brevity edges toward under-specification rather than disciplined conciseness.

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 is simple (two well-documented parameters, no nesting) and has no output schema, so return values need not be explained. Still, with zero annotations the description should say something about permissions or the effect of the global-policies flag, and it says neither.

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 both 'realm' and 'include-global-policies' are already documented in the schema. The description adds no syntax, format, or behavioral meaning beyond that, which makes the baseline 3 appropriate when the schema does all the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb and resource ('Get the client policies') scoped to a realm, so the agent knows it is a read of policy configuration. However, it does nothing to separate itself from nearby siblings such as list_authz_policies, evaluate_authz_policies, or update_client_policies beyond the bare verb. The purpose is identifiable but not sharply differentiated.

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?

There is no when-to-use guidance, no mention of prerequisites, and no reference to alternatives. The sibling set contains both an update_client_policies and several authz policy tools, so an agent must guess which one fits a given request. Nothing in the description helps make that choice.

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