Skip to main content
Glama
szoran53

pbs-mcp-server

by szoran53

Prune Datastore

pbs_prune_datastore
Destructive

Prune outdated snapshots from a Proxmox backup group using retention policies. Use dry-run mode to preview deletions before applying.

Instructions

Run a prune operation on a backup group to remove old snapshots per retention policy. Supports dry-run mode.

Args:

  • store (string): Datastore name

  • backup_type (string): Backup type — "vm", "ct", or "host"

  • backup_id (string): Backup ID (e.g. "100")

  • dry_run (boolean, optional): If true, only show what would be pruned (default false)

  • keep_last (number, optional): Keep the last N snapshots

  • keep_hourly (number, optional): Keep N hourly snapshots

  • keep_daily (number, optional): Keep N daily snapshots

  • keep_weekly (number, optional): Keep N weekly snapshots

  • keep_monthly (number, optional): Keep N monthly snapshots

  • keep_yearly (number, optional): Keep N yearly snapshots

  • ns (string, optional): Namespace path

Returns: Task UPID or dry-run results showing which snapshots would be removed/kept.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nsNoNamespace path
storeYesDatastore name
dry_runNoOnly show what would be pruned
backup_idYesBackup ID (e.g. '100')
keep_lastNoKeep last N snapshots
keep_dailyNoKeep N daily
backup_typeYesBackup type
keep_hourlyNoKeep N hourly
keep_weeklyNoKeep N weekly
keep_yearlyNoKeep N yearly
keep_monthlyNoKeep N monthly
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds the dry-run capability, noting that it can show what would be pruned without removing, and discloses the return as a Task UPID or dry-run results. This goes beyond the structured annotations to describe safe preview behavior and asynchronous execution.

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?

The summary sentence is immediately followed by a compact Args list and a Returns line. Every parameter is listed with a one-line description, and the front-loaded purpose statement makes the tool's function instantly clear.

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?

Given the tool's complexity (11 parameters, retention policies) and lack of output schema, the description adequately covers the operation's purpose, dry-run mode, and return value. It does not delve into policy interaction details or potential long-running behavior, but the return 'Task UPID' hints at async execution. A minor gap is not explaining prerequisites or error conditions, but it is sufficient for agent invocation.

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 parameters are already well-documented. The description repeats the parameter list with minor clarifications (e.g., backup_type values, dry_run default), but does not add meaning beyond the schema. Baseline 3 is appropriate.

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?

The description opens with a specific verb-action: 'Run a prune operation on a backup group to remove old snapshots per retention policy.' This clearly distinguishes it from sibling operations like garbage collection or verification. The resource is precisely the backup group defined by store, backup_type, and backup_id.

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?

The description implies usage for retention-based snapshot cleanup but does not explicitly state when to use this tool versus siblings such as pbs_run_garbage_collection or pbs_protect_snapshot. There are no exclusions or alternative tool references, leaving the decision to the agent's inference.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szoran53/pbs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server