Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

update_authz_resource

Update a client resource server's authorization resource in Keycloak using realm, client UUID, resource ID, and resource data.

Instructions

Update a resource 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>",
      "resource_id": "<resource_id>",
      "resource_data": "<resource_data>"
    },
    "name": "update_authz_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
resource_idYesAuthorization resource ID
resource_dataYesResource 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 exist, so the description carries the full behavioral burden, and it discloses nothing about whether this is a full replace or partial patch, what happens to unspecified fields, what permissions are required, or whether the change is reversible. For a mutation tool that takes a free-form nested resource_data object, these omissions matter.

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 filler or repetition. It is concise to a fault, but nothing in the wording is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation with a nested object payload and no annotations or output schema, the description supplies none of the context an agent needs to invoke it safely. It does not explain the shape of resource_data, required permissions, or side effects.

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% and all four parameters are documented in the schema, so the baseline is 3. The description adds nothing about the semantics of resource_data (partial vs complete representation) or identifier formats, so it earns no credit above baseline.

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 verb ("Update") and resource ("a resource of a client's resource server"), which adds a little scope beyond the name and hints at the distinction from update_authz_resource_server. However, it is close to a restatement of update_authz_resource and never explicitly contrasts with siblings like create_authz_resource or delete_authz_resource.

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 prerequisites, and no mention of alternatives such as create_authz_resource for new resources or get_authz_resource for reads. The agent must infer everything about selection from the name alone.

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