Skip to main content
Glama

Restore a workflow version

restore_workflow_version
Idempotent

Roll a workflow back: make an earlier version's definition the current one, saved as the newest version (the versions in between are kept). Runs already started are not affected; schedules use it from their next start.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe workflow's name.
versionYesThe version to restore, from list_workflow_versions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the resulting version-history behavior (the restored definition becomes the newest version, intermediate versions are kept), that in-flight runs are unaffected, and that schedules pick it up on their next start. It does not state whether a new version identifier is returned, but the annotations already cover the safety profile.

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 tight sentences with no filler; the core action and its version-history consequence are front-loaded, and the secondary effects on runs and schedules follow. Every clause carries distinct information.

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 no output schema, the description covers the action, history semantics, and side effects on runs and schedules — enough to call it correctly. The only gap is the return value, which the absence of an output schema leaves undocumented.

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 100%, and the schema already documents both name and version, including the list_workflow_versions reference. The description only implicitly reinforces that version is a prior version number, so it adds little beyond the structured data — 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?

States a specific verb and resource ("Roll a workflow back") plus the exact mechanics: an earlier version's definition becomes the current one, saved as the newest version. This clearly distinguishes it from save_workflow (new content), delete_workflow (removal), and list_workflow_versions (read-only enumeration).

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 establishes the situation that selects this tool — reverting to an earlier version — and the version parameter points to list_workflow_versions as the source of valid values, which implies the discover-then-restore flow. It stops short of explicit exclusions (e.g., when to use save_workflow instead of 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