Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_components

Retrieve all components in a Keycloak realm, with optional filters by name, parent, type, or provider ID, to inspect or manage realm configuration.

Instructions

List all components for the realm, optionally filtered by name, parent, or type.

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

Input Schema

NameRequiredDescriptionDefault
nameNoComponent name filter
typeNoComponent type filter
realmYesRealm name
parentNoParent component ID filter
providerIdNoComponent provider ID filter

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 burden. It implies a read-only enumeration via 'List all', but says nothing about pagination, result limits, ordering, permissions required, or whether omitted filters return the complete realm contents — meaningful gaps for an unbounded list operation.

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; the resource and scope come first, followed by the filtering options. Slightly incomplete rather than verbose, which is not a conciseness fault.

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?

For a simple read-only list tool with fully documented parameters, the definition is minimally viable. With no output schema and no annotations, however, it should say something about what is returned and whether results are paginated.

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 five parameters, establishing a baseline of 3. The description adds little beyond naming three of the filters and notably omits 'providerId', which slightly understates what is available.

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 ('List') and resource ('all components') scoped to a realm, and names the filterable dimensions. It does not explicitly contrast itself with the many sibling list_* tools, but the resource noun 'components' alone is distinctive enough for an agent to disambiguate.

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?

The phrase 'optionally filtered by ...' implies the intended pattern of broad enumeration plus narrowing, but there is no explicit statement of when to use this versus another tool or of any prerequisites. Usage is only implied.

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