Skip to main content
Glama

Restore a version

restore_version

Make an earlier design version current again, save it as a new version so in-between versions stay available, validate the result, and optionally attach a preview image.

Instructions

OpenSCAD: makes an earlier version the current code of a design again. The restored code is saved as a new version, so the versions in between stay available. Validates the result and returns an image like update_design.

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_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDesign name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes.
previewNoAttach an image of the restored model. Default: true.
versionYesThe version to bring back (see list_versions).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, non-idempotent mutation; the description usefully adds that each restore creates a new version, that intermediate versions remain available, and that the result is validated. That is genuine added context, though it says nothing about failure behavior when the version is invalid or about the validation result format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core effect and then the persistence semantics. The "OpenSCAD:" prefix and the trailing "like update_design" comparison are slightly loose but earn their place as context.

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 three-parameter mutation with no output schema, the description covers the action, the history side effect, validation, and the returned image. Missing only edge-case behavior (invalid version, validation failure), which keeps it short of full completeness.

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 name, version (including the list_versions pointer) and preview defaulting to true all documented in the schema. The description adds only the notion that the restored code is saved as yet another version, which slightly informs the meaning of `version` but does not go beyond the schema materially.

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 names a specific verb and resource ("makes an earlier version the current code of a design again") and states the exact effect on version history. It also distinguishes the tool from the read-only listing sibling by pointing at list_versions for version selection and at update_design for the return shape.

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: an agent can infer this is the tool for rolling back to a prior version. There is no explicit when-to-use versus update_design (which presumably edits current code) and no stated preconditions such as needing a valid version from list_versions.

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