Skip to main content
Glama

Put a restore point back

restore_catalog_snapshot
Idempotent

Put a catalog back to how it was at a restore point from list_catalog_snapshots — its pages, products, design and settings. Everything changed since that point is undone, including the merchant's own edits in the editor; the catalog's publish state and public link are left as they are. The state being replaced is stored first, so a restore can itself be undone. Destructive, so it runs only on a call with confirm: true; without it nothing changes and the answer lists what would be undone under requiresConfirmation, for the merchant to approve. The snapshotId comes from list_catalog_snapshots; the newest point with reason "assistant" is the state before the last assistant change.

Input Schema

NameRequiredDescriptionDefault
confirmNotrue once the merchant has agreed to the restore listed under requiresConfirmation
catalogIdYesCatalog id, as returned by list_catalogs
snapshotIdYesRestore point id, as returned by list_catalog_snapshots

Output Schema

NameRequiredDescriptionDefault
appliedYes
catalogNo
restoredNo
catalogIdNo
snapshotIdNo
confirmWithNoThe arguments that carry the change out once the merchant agrees
safetySnapshotIdNoThe state just replaced, so the restore can be undone
requiresConfirmationNoPresent when nothing was changed: the consequences to show the merchant before calling again with confirm: true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior1/5

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

The description transparently explains destructive effects, undo behavior, confirm handling, and what is preserved, but it explicitly says the operation is destructive while annotations declare destructiveHint=false. That is a direct contradiction in a safety-relevant field.

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 description is dense but front-loaded: effects, exclusions, undoability, confirmation behavior, and snapshot source each appear in a purposeful sentence with no filler.

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?

Given that an output schema exists and the schema fully documents parameters, the description covers the remaining agent-critical context: restoration scope, preserved state, undo behavior, confirmation handling, and snapshot selection.

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 the baseline is 3, but the description adds useful meaning: confirm enables the dry-run/approval workflow when absent, and snapshotId is sourced from list_catalog_snapshots, with a specific rule for finding the pre-assistant state.

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: putting a catalog back to a restore point from list_catalog_snapshots. It also names exactly which catalog aspects are restored (pages, products, design, settings), making it distinguishable from edit_catalog and update_catalog.

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

Usage Guidelines4/5

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

Clearly directs the agent to obtain snapshotId from list_catalog_snapshots and explains that the newest reason="assistant" point is the state before the last assistant change. It also specifies the confirm: true approval flow, though it does not explicitly compare when to use restore versus selective edit_catalog actions.

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