Skip to main content
Glama
gpo-mcp-server

gpo-mcp-server

by hgursel

Find Gpo By Setting

find_gpo_by_setting

Search all Group Policy Objects for a specific policy setting by keyword, matching setting names, categories, registry paths, and value names to locate where a policy is configured.

Instructions

Search all GPOs for a specific policy setting by keyword.

Iterates through every GPO in the domain, fetches its XML report, and searches for the given keyword in setting names, categories, and registry key paths. This operation can be slow on domains with many GPOs because it must fetch and parse each GPO report.

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": {
      "setting_keyword": "<setting_keyword>"
    },
    "name": "find_gpo_by_setting"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectionNoOptional filter to search only within "Computer" or "User" configuration. Leave empty to search both sections.
setting_keywordYesText to search for (case-insensitive). Matched against setting names, categories, registry key paths, and value names.

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

With no annotations supplied, the description carries the disclosure burden and does so well: it reveals that every GPO in the domain is enumerated and each XML report fetched and parsed, and it warns about latency on large domains. It omits permission requirements, result caps, and whether partial failures on individual GPOs abort the scan.

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?

Two tight paragraphs: the purpose first, then the mechanism and performance caveat. Every sentence carries information an agent needs, and the key scoping statement is front-loaded.

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 covers what the tool does and its performance profile. What remains thin is operational detail for a domain-wide scan, such as expected result volume or handling of per-GPO fetch errors.

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%, so both parameters are already documented in structured fields. The description's mention of matching against setting names, categories, registry key paths, and value names largely repeats the schema, and the optional 'section' filter is not discussed at all, so it adds little beyond baseline.

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: search all GPOs for a policy setting by keyword, and it explains the underlying mechanism (iterate GPOs, fetch each XML report, match in setting names, categories, registry key paths). It is clearly distinct from sibling readers like get_gpo_details or list_gpos, but it never names an alternative, so it falls short of a 5.

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 'search all GPOs for a specific policy setting by keyword,' and the warning that it 'can be slow on domains with many GPOs' gives the agent a real cost signal for choosing this tool. However, there is no explicit when-not guidance and no pointer to cheaper alternatives such as fetching a single GPO's settings or report.

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