Skip to main content
Glama
alpadalar

ActiveDirectoryMCP

by alpadalar

list_users

Retrieve Active Directory users from a domain or specific organizational unit, with optional LDAP filters and selected attributes to target queries and inspect account details.

Instructions

List users in Active Directory with optional filtering.

This tool retrieves users from the specified organizational unit or entire domain. Supports custom LDAP filters and attribute selection for targeted queries.

Example:

  • List all users: list_users()

  • List users in specific OU: list_users(ou="OU=Sales,DC=company,DC=com")

  • List with filter: list_users(filter_criteria="(department=IT)")

Returns user information including account status, group memberships, and security details.

Input Schema

NameRequiredDescriptionDefault
ouNoOrganizational Unit DN to search in
attributesNoSpecific attributes to retrieve
filter_criteriaNoAdditional LDAP filter criteria

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose that the default scope is the entire domain and that results include account status, group memberships and security details, but it says nothing about result size limits, pagination, or required permissions — significant for a domain-wide listing that can return thousands of entries.

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?

Front-loaded with the core action and scope, followed by compact schema-relevant examples. The line "Supports custom LDAP filters and attribute selection for targeted queries" partially restates the examples, but no sentence is seriously wasteful.

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?

With no output schema, the description usefully summarizes returned fields, and with zero required parameters it conveys that all arguments are optional. However, it omits result-volume and paging behavior, which is the main risk an agent faces when calling a domain-wide user listing with no annotations.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, and the description goes beyond it by demonstrating the DN syntax for `ou` ("OU=Sales,DC=company,DC=com") and LDAP filter syntax for `filter_criteria` ("(department=IT)"). `attributes` is only echoed, not illustrated, so it stops short of a 5.

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?

Opens with a specific verb+resource ("List users in Active Directory") and clarifies scope via "specified organizational unit or entire domain." It is distinguishable from get_user (single user) and the narrower siblings like get_inactive_users, though it never names those siblings explicitly to sharpen the boundary.

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 three worked examples show concrete invocation contexts (all users, OU-scoped, filtered), which is better than implied usage. But there is no guidance on when to prefer a sibling such as get_user or get_inactive_users, and no exclusions or preconditions (connection/auth) stated.

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