Skip to main content
Glama

Revert pending changes

omv_revert_changes

Discard all pending OpenMediaVault configuration changes and report which modules and staged edits were dropped; use it to undo staged changes before applying them.

Instructions

Drop every pending configuration change on the NAS (OMV's Revert button) and say what was dropped. Use it when asked "undo what you staged", "discard the pending changes", or "cancel that share"; to keep them, omv_apply_changes. dropped_modules are the modules that were pending; dropped_staged the changes this server had staged. Changes made elsewhere are dropped too. Directories that creating a shared folder made on disk stay there: reverting removes the folder from the configuration, not the directory. Refuses when nothing is pending. Needs OMV_ALLOW_WRITES=1.

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": "omv_revert_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
detailYes
outcomeYes
pendingYes
dropped_stagedYes
dropped_modulesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing what is removed (dropped_modules, dropped_staged), the important side-effect boundary (changes made elsewhere are dropped too), and what survives (directories created on disk stay). It also states the authorization requirement (OMV_ALLOW_WRITES=1) and the no-op refusal case, which is the non-idempotent behavior implied by idempotentHint=false.

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-loads the action in the first sentence, then layers triggers, the alternative, outcome semantics, and the auth requirement in a compact form. It is dense but each clause carries distinct information; a light reordering into bullets would improve scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A zero-parameter mutation with an output schema needs exactly what this description supplies: outcome semantics, side-effect boundaries, refusal condition, and the write-permission prerequisite. Nothing an agent would need before calling it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero parameters, so there is nothing to disambiguate and the baseline applies. The description instead describes the shape of the result fields (dropped_modules, dropped_staged), which is helpful context even though it belongs to the output schema.

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 ('Drop every pending configuration change on the NAS') and names the concrete UI analogue (OMV's Revert button), which pins down scope beyond the tool name alone. It is clearly distinguishable from the sibling omv_apply_changes, the opposite action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit trigger phrases ('undo what you staged', 'discard the pending changes', 'cancel that share') and names the alternative to use instead when the intent is the opposite ('to keep them, omv_apply_changes'). It also states the precondition under which the tool refuses ('Refuses when nothing is pending').

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