Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

search_authz_permissions

Find an authorization permission by name within a Keycloak client's resource server, returning matching permissions with optional field selection.

Instructions

Find an authorization permission by name in 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>"
    },
    "name": "search_authz_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName filter
realmYesRealm name
fieldsNoComma-separated list of fields to return
client_uuidYesClient UUID

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 behavioral burden. It implies a read operation but says nothing about required permissions, whether 'name' is an exact or substring match, whether the result is a single permission or a list, or whether results are paginated.

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; every word contributes to scope. It is terse to the point of leaving gaps, but those gaps are coverage issues rather than wasted wording.

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 four-parameter search tool with no annotations and no output schema, the description is thin: it doesn't clarify cardinality (one permission vs. many), whether the 'fields' projection affects the returned shape, or pagination. An agent could invoke it, but would not know what to expect back.

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 all four parameters, and the baseline of 3 applies. The description adds only the framing that lookup is by name within a client's resource server, which mildly contextualizes 'name' and 'client_uuid' but adds no format or matching semantics beyond the schema.

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?

The description gives a specific verb ('Find') and resource ('authorization permission') plus its scope ('by name in a client's resource server'), so the operation is unambiguous. It does not, however, name or distinguish itself from close siblings such as list_authz_permissions or search_authz_policies, leaving the agent to infer the boundary.

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 explicit when-to-use or when-not-to-use guidance and no alternative tool is mentioned. The phrase 'by name' weakly implies the name filter is the intended lookup key, but nothing explains why an agent would pick this over list_authz_permissions or the parallel search_authz_policies/resources/scopes tools.

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