get_role_by_id
Retrieve a specific role by its ID from a Keycloak realm. Provide the realm name and role ID to get role details.
Instructions
Get a role by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| role_id | Yes | Role ID |
Retrieve a specific role by its ID from a Keycloak realm. Provide the realm name and role ID to get role details.
Get a role by ID.
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| role_id | Yes | Role ID |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must disclose behavioral traits. It only states 'Get a role by ID' without mentioning whether the role exists, error handling, permissions needed, or any side effects, leaving the agent without critical behavioral context.
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 extremely concise at one sentence, front-loading the key action. It is not verbose, but it may be overly terse. Still, it earns its place by being direct.
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 no output schema, the description should specify what is returned (e.g., role object, null if not found). It lacks this detail and does not provide enough information for the agent to handle the tool's usage completely.
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 description does not add meaning beyond the input schema, which already provides 100% coverage for the two parameters ('realm' and 'role_id'). The baseline score of 3 is appropriate as the schema is sufficient.
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 explicitly states the verb 'Get' and the resource 'role by ID', clearly indicating the action and the specific object. It distinguishes itself from sibling tools like 'get_role' and 'get_client_role' by specifying retrieval by ID.
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. Among siblings, there are other role retrieval tools (e.g., 'get_role', 'get_realm_role'), but the description does not differentiate contexts or suggest when to use each.
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/paoloamato2/keycloak-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server