Skip to main content
Glama
gpo-mcp-server

gpo-mcp-server

by hgursel

Get Gpo Scope

get_gpo_scope

Determines the effective scope of a Group Policy Object by combining linked OUs, security filtering, and WMI filter criteria to show affected users and computers.

Instructions

Show which users and computers are affected by a GPO.

Determines the effective applicability scope of a GPO by combining:

  • Linked OUs: Which Organizational Units/Sites/Domains this GPO is applied to (with link-enabled and enforcement status).

  • Security Filtering: Which users and groups have the "Apply Group Policy" permission (GpoApply) — only principals with this permission actually receive the GPO.

  • WMI Filter: If a WMI filter is attached, the filter name and WQL query condition that computers must satisfy.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_gpo_scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoGPO display name. Provide either this or gpo_id.
gpo_idNoGPO GUID string. Provide either this or name.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does meaningful work: it discloses that the result is a computed combination of three distinct data sources, explains the GpoApply permission semantics ('only principals with this permission actually receive the GPO'), and notes that link-enabled and enforcement status are included. It leaves unstated whether this is strictly read-only, what happens when a GPO name is ambiguous or missing, and whether WMI-filter evaluation is expensive — gaps that matter for a tool with zero annotation coverage.

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?

A single front-loaded summary sentence followed by a bulleted breakdown of the three contributing sources. Every line adds information an agent cannot get from the schema, and there is no filler or restatement of the title.

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-value explanation is rightly omitted, and the description covers the domain semantics an agent needs to interpret a scope result. Remaining gaps are edge conditions — not-found behavior, ambiguous name handling, and cost of enumerating security filtering and WMI filters — rather than core omissions.

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 100% and both parameters carry their own descriptions, including the 'provide either this or gpo_id' alternative, so the schema already does the work. The tool description adds nothing about name resolution or which identifier is preferred, so the baseline of 3 applies.

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 opening sentence names a specific resource and output: 'Show which users and computers are affected by a GPO.' The three bullets ('Linked OUs', 'Security Filtering', 'WMI Filter') make clear this is a composite effective-scope calculation rather than a raw link listing, which implicitly separates it from get_gpo_links or get_gpo_settings. It stops short of explicitly naming a sibling to prefer for narrower queries, so it is clear but not fully differentiated.

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 implied by the definition of 'effective applicability scope' but never stated as when-to-use versus when-not. There is no guidance such as 'use get_gpo_links if you only need the link list' or 'use get_rsop for per-machine resultant policy.' An agent can infer the fit from the description but gets no explicit routing signal.

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