Skip to main content
Glama
Vectorworks MCP

Vectorworks MCP

vw_set_lighting_device_fields

Edit fields of one or more Spotlight Lighting Devices in an open Vectorworks drawing as a single revertible step, with every value verified by read-back before you trust it.

Instructions

Change fields of one or more Lighting Devices in the live drawing, verified by reading them back, as one revertible step.

Changes the document. This is the default way to edit device data; use vw_import_hookup for many rows from a spreadsheet export and vw_lightwright_patch only for Lightwright round trips or when a dialog blocks the bridge. Every selector and field name is validated first; if any fails, nothing changes. Universe / DMX Address edits are applied through UniverseAddress (Spotlight's source of truth), so set that field rather than Universe or DMX Address alone. Undo exactly this call with vw_revert_last. Returns one item per device with uuid, before, after (re-read from Vectorworks) and not_applied for values Spotlight overrode; trust after.

GDTF fixture types cannot be assigned here: 'GDTF Fixture Name' and 'GDTF Fixture Mode' accept text but link nothing (live 2026-11-21); the user picks the GDTF in the Object Info palette.

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": {
      "updates": "<updates>"
    },
    "name": "vw_set_lighting_device_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
updatesYesOne item per device: a selector plus "fields". Selector keys: "uuid" (from vw_list_lighting_devices); or "position" and "unit_number" together (unit numbers repeat per position); or "unit_number" alone when it is unique in the plot; or "channel" when unique. "fields" maps Lighting Device parameter names to new string values, for example {"position": "1E", "unit_number": "3", "fields": {"Channel": "101", "Color": "R02"}}. Addresses go in "UniverseAddress" as "universe/address" such as "2/101".
documentNoName of the document this call is meant for (as vw_list_documents shows it, with or without .vwx). If another document is active nothing changes; use vw_switch_document first. Always set it for a write.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / document / description
      Added value: +"Name of the document this call is meant for (as vw_list_documents shows it, with or without .vwx). If another document is active nothing changes; use vw_switch_document first. Always set it for a write."
    • addedInput schema / properties / updates / description
      Added value: +"One item per device: a selector plus \"fields\". Selector keys: \"uuid\" (from vw_list_lighting_devices); or \"position\" and \"unit_number\" together (unit numbers repeat per position); or \"unit_number\" alone when it is unique in the plot; or \"channel\" when unique. \"fields\" maps Lighting Device parameter names to new string values, for example {\"position\": \"1E\", \"unit_number\": \"3\", \"fields\": {\"Channel\": \"101\", \"Color\": \"R02\"}}. Addresses go in \"UniverseAddress\" as \"universe/address\" such as \"2/101\"."
  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
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, and the description is consistent with them while adding real context: all-or-nothing validation, the vw_revert_last undo path, the before/after/not_applied return shape, and the UniversalAddress source-of-truth rule. However, it does not cover permission requirements or the fact that destructiveHint=false understates a field mutation that overwrites prior values except via revert.

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?

Content is front-loaded: what it does, that it mutates, alternatives, atomicity, undo, return value, then caveats. It is dense with useful detail, though a few clauses such as 'Changes the document' and repeated GDTF caveats pad length slightly.

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 mutation tool with a rich nested updates parameter, the description covers validation, atomicity, undo, return semantics and known limitations. It even explains return values beyond what the output schema conveys by telling the agent to trust `after` over `not_applied`.

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 the selector keys and field semantics are already documented, but the description adds non-obvious meaning: the UniverseAddress routing rule (set that field rather than Universe or DMX Address alone) and the caveat that some field values are silently overridden, visible only in not_applied. The GDTF text field behavior is likewise stated as accepting input while linking nothing.

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 opening sentence gives a specific verb (Change), resource (fields of one or more Lighting Devices in the live drawing) and scope (as one revertible step, verified by reading back). It explicitly distinguishes itself from vw_import_hookup and vw_lightwright_patch, so an agent can route without opening either 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?

It states this is the default way to edit device data, names the two sibling tools and the conditions that select them (bulk spreadsheet import; Lightwright round trips or a blocking dialog). It also gives a hard exclusion for GDTF fixture assignment and points to the Object Info palette instead.

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