Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: undo all approved drafts (preview card button)

revert_all_changesets
Destructive

AddSynapse: Undoes, newest first, the drafts that were approved together with «Approve all» in the app's draft view, on behalf of the signed-in site owner or admin who pressed «Undo all». 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_all_changesets"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructive=true, readOnly=false, and idempotent=false, so the safety profile is covered. The description adds real behavior beyond that: the undo proceeds newest first, it acts on behalf of the signed-in owner/admin, and without a valid single-use nonce 'nothing happens', which is a useful failure mode. It stops short of saying what happens on partial failure.

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 sentences, front-loaded with the action and scope before the token requirement. The quoted UI labels take some space but do anchor the tool to a concrete screen element; there is little genuine waste.

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 destructive, non-idempotent mutation with no output schema, the description covers ordering, scope of affected drafts, the actor on whose behalf it runs, and the token prerequisite with its failure behavior. Left unstated are partial-failure semantics and whether prior approvals are restored, which are minor for this class of tool.

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 baseline is 3. The description restates most of what the schema already says about ui_nonce and changeset_id, adding only the detail that the token was issued with the approval and that an invalid token causes a no-op. That is marginal value, not compensation for a gap.

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 names a specific verb ('Undoes') and pins the exact resource: drafts approved together via «Approve all» in the draft view. That implicitly separates it from approve_all_changesets and revert_changeset, but it never names a sibling or states the single-draft alternative explicitly, so differentiation is left to inference.

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 clear from the framing (the preview card's «Undo all» button after a bulk approval), and the prerequisite ui_nonce is stated. However, there is no explicit when-not-to-use guidance and no mention that revert_changeset is the tool for undoing a single draft, which is the most likely confusion given the sibling set.

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