Skip to main content
Glama
mcpAD

mcpAD

List Sites

list_sites
Read-only

Lists Active Directory sites from the Configuration partition for audit and reporting. Supports single-domain forests by default and accepts a config_base for multi-domain environments.

Instructions

List the Active Directory sites (audit).

Reads site objects from CN=Sites,CN=Configuration,<forest root>. The Configuration naming context is derived from the domain base for a single-domain forest; pass config_base explicitly for a multi-domain forest. Returns an empty list if the container cannot be read.

Input Schema

NameRequiredDescriptionDefault
limitNo
domainNo
config_baseNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this is a safe read (readOnlyHint=true), so the bar is lower, and the description still adds real context: the underlying DN path, how the Configuration naming context is derived, and the failure mode 'returns an empty list if the container cannot be read'. That empty-result-on-failure behavior is genuinely useful and not in the annotations.

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?

The purpose is front-loaded in the first line, with supporting detail about the LDAP path and edge cases following. Every sentence carries information; there is minor redundancy between the forest-root path and the config_base note, but nothing extraneous.

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?

An output schema exists, so return values need not be described, and the description still flags the empty-list case. For a read-only, zero-required-parameter listing tool this is close to sufficient; the notable remaining gap is the unpaginated-sounding limit parameter and whether the listing is recursive.

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 description coverage is 0%, so the schema alone leaves all three parameters opaque. The description compensates for config_base (pass explicitly for multi-domain forests) and implies the role of domain in deriving the config base, but says nothing about limit or its default of 100, leaving a third of the parameters undocumented anywhere.

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?

The description gives a specific verb and resource: 'List the Active Directory sites (audit)'. It also names the exact LDAP container read, which makes the object type unambiguous. It does not explicitly contrast with look-alike siblings such as list_trusts or list_domain_controllers, but the resource is distinct enough to route correctly.

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?

Usage is only implied: the '(audit)' tag hints at an auditing context, and the description states the one real branching rule, 'pass config_base explicitly for a multi-domain forest'. There is no guidance on when to choose this over search_ldap or get_dn for site objects, and no prerequisites are stated.

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