Skip to main content
Glama
gpo-mcp-server

gpo-mcp-server

by hgursel

Find Gpo By Permission

find_gpo_by_permission

Find which GPOs a user or group has permissions on, such as Apply, Read, Edit, or Full Control. Audit who can manage, apply, or read specific Group Policy Objects in the domain.

Instructions

Find GPOs where a specific user or group has a defined permission.

Queries the security permissions on every GPO in the domain to find which GPOs a given user, group, or security principal has access to. Useful for auditing who can manage, apply, or read specific GPOs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "trustee": "<trustee>"
    },
    "name": "find_gpo_by_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
trusteeYesName of the user or group to search for. Can be a samAccountName (e.g. "Domain Admins"), UPN, or DOMAIN\user.
permission_levelNoOptional filter for a specific permission level: - "GpoApply" — principals that receive the GPO settings. - "GpoRead" — principals that can read (but not apply) the GPO. - "GpoEdit" — principals that can edit GPO settings. - "GpoEditDeleteModifySecurity" — full control. Leave empty to return all permission levels for the trustee.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that the tool queries security permissions on every GPO in the domain, which hints at a potentially expensive domain-wide scan. It does not state read-only safety, required permissions/credentials, or what happens for a trustee with no matching GPOs, so the behavioral picture is only partly filled in.

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 in the first sentence, then supporting detail. There is some redundancy between "has a defined permission" and "has access to" in the closing sentence, but overall it is tight and readable.

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 and both parameters are fully documented, so the description needn't explain return values. It covers the domain-wide scan scope, which is the main complexity an agent needs to know; only credential/permission prerequisites and no-match behavior are absent.

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%, including enumerated permission levels for permission_level, so the schema does the heavy lifting. The description adds only that the trustee may be a user, group, or security principal, which is roughly restating the schema's trustee field. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Find GPOs where a specific user or group has a defined permission") and names the searched dimension, permissions, which cleanly separates it from sibling finders like find_gpo_by_setting or find_unlinked_gpos. An agent can pick it without opening the schema.

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?

"Useful for auditing who can manage, apply, or read specific GPOs" gives a contextual use case, but there is no explicit when-not guidance and no routing to an alternative (e.g. when to use a settings-based finder instead). Usage is implied rather than directed.

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