Skip to main content
Glama
Vectorworks MCP

Vectorworks MCP

vw_delete_layer

Delete an empty Vectorworks layer, or force-remove it with all of its objects. Use it to clean up drawing layers, noting the document's only layer is kept.

Instructions

Delete a layer, by default only when it is empty. With force=True the objects on it are deleted too and cannot be brought back by vw_revert_last (this call is a revert barrier either way: later reverts stop here). The only layer of a document cannot be deleted; if the layer is active, another one is made active first. Returns {name, objects_deleted}.

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>"
    },
    "name": "vw_delete_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesLayer name, as vw_list_layers shows it.
forceNoTrue deletes the layer together with every object on it. Default False refuses while the layer holds objects.
documentNoName of the document this call may change, as listed by vw_list_documents. If given and another document is in front, nothing changes and the call fails; use vw_switch_document first. Always pass it for writes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4.1/5.0
Behavior2/5

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

The description itself is unusually candid: force=True destroys objects irreversibly, the call is a revert barrier that blocks later vw_revert_last, active-layer reassignment happens, and the return shape is {name, objects_deleted}. That content, however, directly conflicts with the supplied destructiveHint=false annotation, which tells an agent this call is not destructive. The description is the more accurate of the two, but the structured/annotation signal and the prose point in opposite directions.

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?

Four short sentences, front-loaded with the verb, the default behavior, and then the risky path. Every sentence carries a distinct fact (default precondition, force consequences, revert barrier, edge cases, return value) with no filler.

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 three-parameter destructive tool with no output schema, the definition covers preconditions, the destructive flag's consequences, side effects on the active layer, a hard constraint, and the return shape. An agent has what it needs to call it safely aside from the annotation conflict noted above.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, and the description earns an increment by adding consequences the schema omits: force=True is irreversible and acts as a revert barrier. It does not add anything about the document parameter beyond what the schema already states ('Always pass it for writes').

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 first sentence gives a specific verb and resource ('Delete a layer') plus the default precondition ('only when it is empty'). It also distinguishes behavior from the related vw_revert_last by naming it and explaining the revert-barrier effect.

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?

Clear conditions are given for the default path versus force=True, and hard constraints are stated ('The only layer of a document cannot be deleted'). It does not, however, route the agent to alternatives such as deleting objects while keeping the layer, or vw_list_layers when the layer name is unknown, so the sibling guidance is implicit rather than explicit.

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