list-roles
Fetches all roles in a specified realm, enabling administrators to view and manage role definitions within Keycloak.
Instructions
List all roles in a specific realm
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name |
Fetches all roles in a specified realm, enabling administrators to view and manage role definitions within Keycloak.
List all roles in a specific realm
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
v2.0.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description should disclose behavioral traits. It merely says 'list' without mentioning whether results are paginated, whether authentication is required, or what 'all roles' includes. No additional behavioral context is provided.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that directly states the operation. It contains no filler or redundant information, earning top marks for brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the absence of an output schema, the description does not explain what the list returns (e.g., role names, metadata). It also fails to differentiate from similar role-listing tools, leaving the agent without sufficient context for a complete invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already covers the single parameter 'realm' with description 'Realm name'. The description adds no extra meaning beyond restating 'specific realm', so it meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'List all roles in a specific realm' uses a specific verb and resource, clearly indicating the scope (realm-level roles). It distinguishes itself from sibling tools like list-client-roles and get-role-by-id by specifying the realm context.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives such as list-client-roles or get-role-by-id. The description states what it does but no context about preferred scenarios, exclusions, or fallback tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/thebylito/keycloak-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server