Skip to main content
Glama

Restore a version

restore_version
DestructiveIdempotent

Put an earlier version back live (and in the draft). This changes the live site.

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": {
      "site": "<site>",
      "version": "<version>"
    },
    "name": "restore_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesthe site's clay.site name (subdomain) or its id
versionYesa version number of this site

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 flag destructiveHint=true, readOnlyHint=false and idempotentHint=true, so the safety profile is known. The description earns credit by adding what the annotations cannot: that the restore writes to BOTH the live site and the draft. It stops short of saying whether the previous live version is recoverable or what happens to versions newer than the one restored.

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 short sentences, the state change front-loaded and the live-site impact called out immediately. Nothing is wasted and nothing important is buried.

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 mutation with rich annotations and no output schema, the description covers the essential effect (live + draft change). It is slightly thin on post-conditions and prerequisites, but nothing critical to correct invocation 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%, with both 'site' and 'version' documented in the schema itself, so baseline is 3. The description adds only the loose notion of 'an earlier version' and no format or sourcing detail (e.g. where version numbers come from) 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?

The description gives a specific verb (put back live) and resource (an earlier version), and clarifies the dual effect on live and draft. It is clear what the tool does, though it never names or contrasts the sibling list_versions that an agent would likely consult first.

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 is only implied: the agent can infer 'use this when you want an earlier version live again.' There is no explicit when-not guidance, no prerequisite (e.g. needing a version number from list_versions), and no mention of alternatives such as preview before restoring.

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