Skip to main content
Glama

Store Manager for WooCommerce

Undo applied change (preview card button)

revert_changeset
Destructive

Undoes a change set that was approved from the app's draft view, on behalf of the signed-in shop owner or admin who pressed Undo. Requires ui_nonce, a single-use token given to that view with the approval; without a valid one nothing happens.

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": {
      "changeset_id": "<changeset_id>",
      "ui_nonce": "<ui_nonce>"
    },
    "name": "revert_changeset"
  }
}

Input Schema

NameRequiredDescriptionDefault
ui_nonceYesSingle-use token of the draft view's button.
changeset_idYesChange set id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the ui_nonce is single-use, tied to the approval, and 'without a valid one nothing happens' — an explicit no-op failure mode. It stops short of saying whether the undo is itself reversible or what is returned.

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?

Two tight sentences, front-loaded with the action and resource, followed by the hard prerequisite. The clause 'on behalf of the signed-in shop owner or admin who pressed Undo' is slightly redundant with the title but does clarify the auth context.

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?

For a two-parameter, destructive, no-output-schema tool, the description covers the key preconditions: authorization context and nonce validity with a defined no-op outcome. It omits what state the change set is left in after undo and any failure modes besides a bad nonce, which is a modest gap.

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?

Schema coverage is 100%, so baseline is 3, but the description adds genuinely new meaning: the nonce originates from the draft view at approval time and is single-use, which tells the agent not to reuse or fabricate it. changeset_id gets no added semantic beyond the schema.

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?

States a specific verb ('Undoes') and resource ('a change set that was approved from the app's draft view'), plus the acting identity. It implicitly contrasts with the bulk sibling revert_all_changesets by scoping to a single approved change set, but never names that alternative explicitly.

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 tool is the preview-card Undo button acting on one approved change set. There is no explicit when-to-use vs. when-not guidance and no named alternative (e.g., revert_all_changesets for bulk undo), leaving the agent to infer routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources