Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_authz_scopes

Retrieve a client resource server's authorization scopes by realm and client UUID, with optional name, scope ID, pagination, and result limit filters.

Instructions

List the authorization scopes 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>"
    },
    "name": "list_authz_scopes"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMaximum results to return
nameNoName filter
firstNoPagination offset
realmYesRealm name
scopeIdNoScope ID filter
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 burden of behavioral disclosure. It does not state that this is a safe read-only operation, nor does it describe pagination behavior, result limits, or what happens when client_uuid is invalid or the resource server lacks scopes.

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 short sentence with zero filler, and the resource is front-loaded. It is efficient but arguably too terse given the tool's six parameters, so it stops short of ideal structural completeness.

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?

With six parameters, no output schema, and no annotations, the description should cover pagination, filtering, and return shape; it covers none of these. An agent must open the full schema to learn that results are paginated and filterable at all.

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 all six parameters including first/max pagination and the name/scopeId filters are already documented in the schema. The description adds no syntax, defaults, or interaction detail beyond that, which is the expected baseline when the schema does the work.

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 states a specific verb and resource ("List the authorization scopes") plus a scope qualifier ("of a client's resource server"), so an agent knows what is returned. It does not distinguish this from near-identical siblings such as list_authz_resource_scopes, search_authz_scopes, or list_client_scopes, so the agent cannot route confidently among them from the text alone.

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 exclusions, and no mention of alternatives, despite many sibling list/search tools in this namespace. The only usage signal is implicit in the scope phrase "a client's resource server."

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