Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

search_authz_policies

Search for an authorization policy by name within a client's resource server to locate and inspect its configuration.

Instructions

Find an authorization policy 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_policies"
  }
}

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

B3.2/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. It does not state that this is a read-only operation, whether it returns a single policy or a list, how non-matches are reported, or any permission requirements for accessing a realm/client.

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?

One front-loaded sentence with no filler or redundancy. It is arguably too terse for a search tool, but nothing in it is wasted.

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

Completeness3/5

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

The schema is small and fully documented with no output schema, so little explanation is required. However, for a search tool the return shape (single policy vs. list, empty vs. error) is left ambiguous, which is a real gap for an agent deciding how to consume 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 coverage is 100%, so every parameter is already documented and the baseline is 3. The description does add the relational meaning that 'name' is matched within the resource server identified by client_uuid, which is a modest value add beyond the bare schema labels.

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 (Find) and resource (authorization policy), scoped by name within a client's resource server. This differentiates it reasonably from list_authz_policies, though it never names that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Find ... by name' implies the usage condition (you know the policy name and want to locate it rather than enumerate), but there is no explicit statement of when to prefer list_authz_policies or get_authz_resource, and no note on what happens when no match exists.

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