Skip to main content
Glama
mcpAD

mcpAD

Find Users

find_users
Read-only

Search Active Directory users by name, email, department, location, or SAM account using ANDed criteria and wildcards; optionally restrict the query to an OU subtree with a base DN.

Instructions

Find AD users by field. Criteria are ANDed; values may contain * wildcards.

city/state/country match the l/st/co attributes. Pass base (a DN, e.g. an OU) to restrict the search to a subtree.

Input Schema

NameRequiredDescriptionDefault
samNo
baseNo
cityNo
mailNo
nameNo
limitNo
stateNo
domainNo
countryNo
surnameNo
departmentNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes the safety profile. The description adds useful search behavior: ANDed criteria, wildcard matching, city/state/country attribute mappings, and base-subtree restriction, but it omits limit behavior and other execution details.

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?

Three compact sentences, front-loaded with the core purpose and followed by matching semantics. There is no filler or repetition.

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?

An output schema exists, so return values need not be described, and readOnlyHint covers safety. However, with 11 undocumented schema parameters, the description does not fully compensate for the lack of parameter-level documentation.

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

Parameters2/5

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

Schema coverage is 0% across 11 parameters. The description clarifies base and the city/state/country mappings, but does not explain sam, mail, name, surname, department, domain, or limit semantics beyond the general 'by field' statement.

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 and resource: find AD users by field. This clearly distinguishes it from group/computer/contact searches, but it does not explicitly differentiate it from specialized siblings such as find_inactive_users or search_ldap.

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?

Explains how criteria combine (AND) and how to use wildcards and the base parameter, but gives no explicit guidance on when to choose find_users instead of get_user, find_inactive_users, or search_ldap.

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