Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

update_client_policies

Updates client policies for a Keycloak realm using the provided policies data to adjust realm-level client policy configuration.

Instructions

Update 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>",
      "policies_data": "<policies_data>"
    },
    "name": "update_client_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
policies_dataYesClient policies representation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and delivers almost nothing. 'Update' implies a mutation, but it does not say whether policies_data replaces the entire policy set or merges with it, whether the operation is destructive, what permissions are required, or what happens on partial input. For a write tool with a nested object payload, this is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no wasted words, and the resource is front-loaded after the verb. But the brevity reflects under-specification rather than tight editing; for a mutation tool with a nested payload, one sentence cannot carry the needed information.

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 a mutation with a nested object parameter, no annotations, and no output schema, so the description must supply behavioral and structural context. It does not: no replacement-vs-merge semantics, no permission requirements, no return-value indication. An agent could call it but could easily misuse the payload.

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 the schema already documents both realm and policies_data, which sets the baseline at 3. The description adds no meaning beyond that — it does not clarify the structure of the 'Client policies representation' object or give an example, so it neither helps nor harms parameter understanding.

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 specific verb and resource ('Update the client policies of the realm'), which is enough to identify the target object and separate it from siblings like update_client or get_client_policies by noun alone. However, it never states what a 'client policy' comprises or what aspect of it is being changed, so the purpose stays at a vague level.

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 such as permissions or existing policy state, and no pointer to alternatives (e.g., get_client_policies to read, update_client to change client settings). The agent must infer everything about selection from the name.

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