Skip to main content
Glama
Vectorworks MCP

Vectorworks MCP

vw_revert_last

Reverts the last server write in the active Vectorworks document, restoring prior field values, vertices, attributes, or deleted objects; repeat to step further back.

Instructions

Undo exactly the most recent write this server made in the active document.

Changes the document (back to its previous state for that one call). Every typed write tool records what it changed; this restores previous field values, vertices, class attributes, deletes objects, layers and classes that were created, or writes the inverse Lightwright patch. Call it repeatedly to step further back. Not possible: vw_delete_objects, and a vw_exec_python call that created nothing (it only changed existing objects); such an entry blocks stepping further back. Use this instead of Cmd-Z, which merges consecutive scripted edits. Returns {reverted_tool, ...what was restored or deleted, note?}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "vw_revert_last"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentNoName of the document this must run in, as vw_list_documents shows it (".vwx" may be left out) or its full path. If another document is active, nothing changes. Omit to act on whatever document is active.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / document / description
      Added value: +"Name of the document this must run in, as vw_list_documents shows it (\".vwx\" may be left out) or its full path. If another document is active, nothing changes. Omit to act on whatever document is active."
  2. Changed1 schema field changed
    • addedInput schema / properties / document
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Document"
      +}
  3. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, openWorldHint=false; the description goes well beyond by enumerating what is restored (field values, vertices, class attributes) and what is deleted (created objects, layers, classes), plus the inverse Lightwright patch behavior and the blocking-entry failure mode. The one gap is a mild tension worth noting: deleting created objects/layers is disclosed as a possible effect while destructiveHint=false, so an agent could underestimate impact if it reads only annotations. Also, with no output schema, the return shape {reverted_tool, ...restored/deleted, note?} is usefully supplied.

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?

Front-loaded with the single most important sentence, and every subsequent sentence adds operational information. The blocked-entry sentence is syntactically tangled ("Not possible: vw_delete_objects, and a vw_exec_python call that created nothing...") and costs a re-read, which keeps it below 5.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter mutation tool with no output schema, the definition covers scope, mutation semantics, iterative behavior, blocked states, the alternative to avoid, and the return payload. An agent has everything needed to invoke it correctly and interpret results.

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% and the single `document` parameter is thoroughly documented in the schema itself (name or full path, what happens if another document is active, omit for active document). The description adds no parameter-level detail, so the baseline of 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?

"Undo exactly the most recent write this server made in the active document" gives a specific verb (undo), a precise scope (most recent, this server's writes only, active document), and implicitly separates itself from the Cmd-Z alternative. An agent knows exactly what operation this performs without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when/when-not/alternatives: "Call it repeatedly to step further back" gives the repeated-use pattern, "Use this instead of Cmd-Z, which merges consecutive scripted edits" names the alternative and why it's wrong, and the definition states two cases where stepping back is blocked (vw_delete_objects entries, a vw_exec_python that created nothing). Nothing is left to inference.

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