Skip to main content
Glama
gpo-mcp-server

gpo-mcp-server

by hgursel

Get Gpo Backup

get_gpo_backup

Export a Group Policy Object to a specified backup path without changing its configuration, capturing policy, security, and WMI filter settings for later restore.

Instructions

Create a backup of a Group Policy Object to a specified path.

Exports the GPO settings to a backup folder using Backup-GPO. The backup includes all policy settings, security settings, and WMI filters. It does NOT modify any GPO configuration — this is a read-only export operation.

The backup can later be used to restore the GPO with Restore-GPO (outside the scope of this read-only server).

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_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoGPO display name. Provide either this or gpo_id.
gpo_idNoGPO GUID string. Provide either this or name.
backup_pathNoFilesystem path for the backup directory. Defaults to the value of the GPO_BACKUP_PATH environment variable (default: C:\GPOBackups).

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

With no annotations supplied, the description carries the full burden, and it does real work: it discloses that a write to a filesystem path occurs, that the payload includes policy settings, security settings and WMI filters, and that the GPO configuration itself is not modified. The notable remaining gap is overwrite behavior when backup_path already exists, plus any permission requirements.

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 core action is front-loaded in the first sentence, and the follow-up sentences each add distinct information (payload contents, non-mutation guarantee, restore scope). It is slightly padded by the paragraph breaks and the parenthetical aside, but nothing is redundant.

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 explained, and the description covers the key behavioral facts for a three-parameter export tool. What is missing is narrow but relevant: what happens if the target directory exists or is not writable. The definition is otherwise sufficient for an agent to invoke it correctly.

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%, so the schema already explains name vs. gpo_id and the GPO_BACKUP_PATH default for backup_path. The description only echoes 'to a specified path' and adds no format, validation, or override guidance beyond the structured fields, so the baseline 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 first sentence gives a specific verb and resource: 'Create a backup of a Group Policy Object to a specified path.' It is unambiguous about what is produced, but it never contrasts itself with sibling tools such as get_gpo_report or get_gpo_settings, which read GPO data without producing a persistent artifact.

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 context is implied rather than stated: the description notes the backup 'can later be used to restore the GPO with Restore-GPO (outside the scope of this read-only server)', which tells the agent the operation is an export for later restore. However, it gives no explicit when-to-use vs. a reporting tool like get_gpo_report, and no prerequisites or exclusions beyond the restore note.

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