Skip to main content
Glama

Roll back a site

artifact_site_rollback
Destructive

Restore an earlier version of a published artifact as the current version without changing its address or history. Use to undo an update or publication.

Instructions

Restore an earlier remote artifact version as a new current version, keeping the address and history. Use when the user explicitly wants to undo a publication/update. Get version IDs with get_site include:[versions]. This changes current contents; establish the user's intended version before calling. Returns the new version identifier.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesArtifact identifier returned by find/publish, or the slug in its /s/ URL. Not a local path.
tenant_idNoDestination tenant for creation; defaults to the account tenant.
version_idYesHistorical version to restore, from get_site with versions included.
share_tokenNoToken from a user-provided share URL; carries only that share permission.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true. The description adds value by warning that it changes current contents and advises confirming the user's intended version, which is critical safety context beyond the annotation. It also notes that address and history are preserved, a non-obvious behavioral trait.

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?

Three sentences with zero filler. The action and outcome are front-loaded, and each sentence earns its place: what it does, when to use it, and what to verify before calling.

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?

The description covers the return value ('Returns the new version identifier') since there is no output schema. It also states prerequisites and safety considerations. Given the tool's complexity and the rich schema/annotations, nothing essential is missing.

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 fully documented in the schema. The description adds a small extra hint (version_id comes from get_site with versions included) but does not fundamentally exceed schema information. Baseline 3 applies.

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 clearly states the verb (restore), resource (artifact version), and outcome (new current version), and explicitly differentiates from sibling operations like publish/update by mentioning 'undo a publication/update'. The distinction is unambiguous.

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?

The description provides explicit when-to-use guidance ('Use when the user explicitly wants to undo a publication/update') and a prerequisite (get version IDs via get_site). It does not name alternatives to avoid, but the context is clear enough for an agent to select it appropriately.

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