Skip to main content
Glama
grandMA2 MCP
by drohi-r

generate_fixture_layer_xml

Creates a grandMA2 fixture layer XML file in the importexport directory for immediate import, enabling fixture layer setup without a Telnet connection.

Instructions

Generate a grandMA2 fixture layer XML file and save it to the importexport directory (DESTRUCTIVE).

The output file can be imported immediately using import_fixture_layer.
No telnet connection required — this tool writes a local file only.

Output directory:
  C:\ProgramData\MA Lighting Technologies\grandma\gma2_V_3.9.60\importexport\

Each fixture dict must contain:
    fixture_id (int): grandMA2 fixture ID (e.g. 111)
    name (str): Display name (e.g. "Dim 1" or "Mac 700 1")
    fixture_type_no (int): Fixture type number from list_fixture_types()
    fixture_type_name (str): Display name of the fixture type
    dmx_address (int): 1-based DMX start address within its universe
    num_channels (int): Total DMX channel count for this fixture type

Args:
    filename: Output filename without extension
    layer_name: Layer display name shown in MA2 UI
    layer_index: Layer index number (1-based) for the <Layer> XML element
    fixtures: List of fixture parameter dicts (see schema above)
    showfile: Show name embedded in XML <Info> element
    overwrite: If True, overwrite existing file; if False, return error on conflict
    confirm_destructive: Must be True to execute (writes files to console importexport directory)

Returns:
    str: JSON with file_path, filename, fixture_count, layer_index, layer_name

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": {
      "filename": "<filename>",
      "layer_name": "<layer_name>",
      "layer_index": "<layer_index>",
      "fixtures": "<fixtures>"
    },
    "name": "generate_fixture_layer_xml"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
fixturesYes
showfileNograndma2
overwriteNo
layer_nameYes
layer_indexYes
confirm_destructiveNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it flags the operation as DESTRUCTIVE, discloses that confirm_destructive must be True to execute, explains overwrite=True overwrites an existing file while False returns an error on conflict, and states the exact target directory. It also clarifies the operation is purely local with no telnet connection.

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 action, the destructive flag, and the import path in the first two lines, followed by a clean Args/Returns structure. There is minor redundancy — the Returns block restates fields that an output schema likely already exposes, and the 'DESTRUCTIVE' label is repeated in the confirm_destructive line.

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 7-parameter file-generation tool with no annotations, the description supplies the target directory, the full fixture dict contract, the destructive-execution gate, and overwrite conflict semantics. Output details are largely covered by the existing output schema, so nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate — and it documents every one of the 7 parameters in the Args block, plus a field-by-field contract for each fixture dict (fixture_id, name, fixture_type_no, fixture_type_name, dmx_address, num_channels) with types, examples, and cross-references to list_fixture_types(). This is meaning well beyond the bare schema.

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+resource: 'Generate a grandMA2 fixture layer XML file and save it to the importexport directory'. It also names the complementary sibling import_fixture_layer, so an agent can distinguish generating a file from importing one 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 Guidelines4/5

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

It gives clear workflow context — 'The output file can be imported immediately using import_fixture_layer' and 'No telnet connection required — this tool writes a local file only' — which tells the agent when this is the right tool versus a console-connected operation. It stops short of explicit exclusions or prerequisites (e.g., when *not* to generate a file versus patching fixtures directly).

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

Deploy Server

Other Tools