Skip to main content
Glama
AIops-tools

identity-aiops

user_lockout_status

Determine if a Keycloak user is currently locked out due to brute-force attempts, enabling prompt account unlock or recovery actions.

Instructions

[READ] Brute-force lockout status for one user (Keycloak attack-detection).

KEYCLOAK ONLY. authentik keeps no per-user lockout register, so on an authentik target this returns {"error": "Resource 'user_lockout' is not mapped for platform 'authentik'..."}. That is a definitive answer about the platform, not a fault: do not retry it and do not report the tool as broken — use login_failure_rca on the failed-auth feed instead.

Args: user_id: User id, from list_users. target: IdP target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
user_idYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses the platform-specific error response and clarifies it is a definitive answer, not a fault. However, it does not describe the success return payload or other edge cases, leaving some gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose, then a critical platform caveat, then parameter explanations. Every sentence earns its place; no wasted words.

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

Completeness4/5

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

For a simple status tool with no output schema, it covers purpose, platform constraints, arguments, and error handling. It could be slightly more detailed about the successful return value, but overall it is complete enough for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has no descriptions, but the description explains user_id originates from list_users and target is an IdP config name with a default. This adds meaningful semantics beyond the bare schema field names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it reads brute-force lockout status for one user, explicitly scopes to Keycloak, and differentiates from sibling login_failure_rca. The verb and resource are specific and unambiguous.

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

Usage Guidelines5/5

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

It explicitly says 'KEYCLOAK ONLY', explains what happens on authentik, and directs to login_failure_rca as the alternative. It also provides 'do not retry' guidance, which is excellent usage instruction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Identity-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server