Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

get_authz_resource

Retrieve a client's resource server authorization resource by ID using realm, client UUID, and resource ID for Keycloak administration tasks.

Instructions

Get a resource of a client's resource server by ID.

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

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
client_uuidYesClient UUID
resource_idYesAuthorization resource ID

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?

With no annotations, the description carries the full disclosure burden. The verb 'Get' implies a read-only lookup, but nothing is said about what happens when the resource ID is absent, whether a specific authorization/permission scope is required on the client, or whether the returned resource includes its attributes and permissions.

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 well-formed sentence with the key scoping detail front-loaded and no filler. It is efficient, though its brevity borders on under-specification given everything an agent must infer.

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?

For a three-required-parameter lookup with no annotations and no output schema, the description says almost nothing about what comes back (resource representation, attributes, permissions) or about failure modes such as an unknown resource_id. It leaves an agent able to identify the tool but not fully prepared to interpret the result.

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 each of realm, client_uuid, and resource_id is documented in the input schema, so the baseline is 3. The description adds only marginal meaning, clarifying that resource_id belongs to a specific client and that the client lives in a realm, but it does not explain how the three identifiers relate or how to obtain client_uuid.

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 and resource ('Get a resource') plus the scoping context ('of a client's resource server by ID'), which tells an agent this is a single-item lookup rather than a list operation. However, it never names a sibling and the word 'resource' is heavily overloaded across the sibling catalog (get_authz_resource_attributes, list_authz_resources, search_authz_resources), so the distinction is only implicit.

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?

No when-to-use guidance, no exclusions, and no mention of when an agent should prefer list_authz_resources or search_authz_resources instead. The only cue is 'by ID' embedded in the purpose statement, which an agent must infer as the selection condition.

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