Skip to main content
Glama

Roll back to a previous version

websiteSourceCode_published_rollback
Destructive

Validates and republishes an earlier version as a new head and published version, preserving history. Takes the edit lease when no leaseToken is sent.

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": {
      "websiteId": "<websiteId>",
      "version": "<version>"
    },
    "name": "websiteSourceCode_published_rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYes
websiteIdYes
leaseTokenNoOmit to have Cactal take the edit lease for you; pass a token from websiteSourceCode.lease.acquire to take over from another editor.

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?

Adds real context beyond annotations: the operation validates before republishing, preserves history (rather than truncating it), and implicitly acquires the edit lease when no token is supplied. That lease side effect is a behavioral fact an agent must know about for a destructive, non-idempotent call. It still doesn't say what happens when validation fails or whether the rollback is reversible.

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?

Two sentences, zero filler, with the core action and its outcome front-loaded ahead of the lease caveat. Every clause carries distinct information.

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

Completeness3/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 the important safety story (validation, history preserved, lease acquisition) but omits failure behavior and the meaning of the required version parameter. An agent could call it, but might pass the wrong version identifier.

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 coverage is only 33%: leaseToken is documented in the schema and echoed in the description, but version and websiteId carry no explanation in either place, and 'earlier version' doesn't clarify whether version is a sequential number, a version id, or a snapshot index. Adequate but leaves a genuine ambiguity for a required parameter.

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 sequence ('Validates and republishes an earlier version') and the resulting resource state ('as a new head and published version'), which is concrete enough to distinguish it from a plain publish. It never names the close siblings websiteSourceCode_head_restore or head_publish, so the agent must infer the boundary itself.

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?

'Roll back to a previous version' plus the rollback framing implies when to use it, and the lease sentence gives a conditional usage rule. There is no explicit when-not guidance or comparison to head_restore/head_publish, which are the obvious alternatives an agent would weigh.

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