Skip to main content
Glama
alpadalar

ActiveDirectoryMCP

by alpadalar

get_nested_group_members

Lists all direct and nested members of an Active Directory group by resolving its sAMAccountName and evaluating transitive membership in one LDAP query, including deep or cyclic nesting.

Instructions

Get all direct and nested members of a group.

Resolves the group by sAMAccountName and evaluates transitive membership on the domain controller in a single query (LDAP_MATCHING_RULE_IN_CHAIN), so deep or cyclic nesting is handled without client-side recursion. Results are confined to the configured base DN and capped by max_list_results (see "truncated").

Example:

  • get_nested_group_members(group_name="Domain Admins")

Returns members with dn, sAMAccountName, displayName and type.

Input Schema

NameRequiredDescriptionDefault
group_nameYesGroup name (sAMAccountName) whose nested members to list

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the server-side LDAP_MATCHING_RULE_IN_CHAIN evaluation, handling of deep/cyclic nesting without client recursion, base-DN confinement, and truncation via 'truncated'. It omits read-only confirmation, permission requirements, and latency/cost expectations.

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 purpose, followed by mechanism, scope, and return shape; the example earns its place. Slightly wordy in the mechanism sentence but no filler.

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 one-parameter tool with no output schema, the description covers return fields (dn, sAMAccountName, displayName, type), truncation signaling, and scope boundaries. What remains unstated is permission requirements and what happens when the group name does not resolve.

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

Parameters3/5

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

Schema coverage is 100% and the single parameter already documents that group_name is a sAMAccountName, so the description adds little beyond the schema. The example reinforces the expected value shape but introduces no new semantics such as DN vs name forms or error behavior for unresolved groups.

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 ('Get all direct and nested members of a group') and the qualifier 'nested' implicitly distinguishes it from the sibling get_group_members. It never names that sibling explicitly, so the differentiation must be inferred rather than read.

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 example shows a canonical call and the description bounds results to the base DN and max_list_results, which implies when the tool fits. However, it never says when to prefer this over get_group_members or get_user_groups, leaving the agent to infer the distinction from the word 'nested'.

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