Skip to main content
Glama

Restore a version

restore_automation_version

Make an earlier version current again, as a new version that copies it. The history keeps every version. When the rule is on, it acts only with the human's agreement: called without confirm it returns confirmation_required and a summary of what it would do, and called with confirm: true it acts.

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": {
      "id": "<id>",
      "version": "<version>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "restore_automation_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe rule's id.
confirmNo
versionYes
expectedVersionYesThe rule version your change starts from (get_automation's version). A stale one is refused with version_conflict and the current version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false; the description reinforces this by explaining that the history keeps every version and the operation copies rather than mutates in place. It also discloses the confirmation_required response shape, which annotations cannot express. It leaves out permission requirements and whether concurrent restores are rejected beyond the expectedVersion check.

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 short sentences, front-loaded with the purpose, then the non-destructive history note, then the confirmation protocol. Every sentence carries distinct information and nothing is repeated from the schema.

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?

With no output schema, the description supplies the key return behavior (confirmation_required plus a summary) and the version_conflict case is covered by the expectedVersion schema field. What remains unstated is minor: permission requirements and what the successful response contains. For a four-parameter mutation with annotations, this is close to complete.

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 50%: id and expectedVersion are documented in the schema, while version and confirm are not. The description thoroughly explains confirm's two-mode behavior, which compensates for one gap, but it never states that version is the version number being restored, only implying it via 'an earlier version.' Adequate but not fully compensating for the coverage 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 uses a specific verb and resource: 'Make an earlier version current again, as a new version that copies it.' That is concrete and distinguishable from list_automation_versions or get_automation_version, since it clearly creates a new current version. It does not explicitly contrast itself with siblings such as update_automation, which keeps it from a 5.

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?

It gives a precise rule for the confirm parameter: without confirm it returns confirmation_required plus a summary, and with confirm: true it acts. That tells the agent exactly how to proceed in the human-in-the-loop case. It does not state when to prefer restore over update_automation or other sibling paths, so no explicit alternative routing.

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