Skip to main content
Glama
grandMA2 MCP
by drohi-r

import_fixture_layer

Imports a fixture layer XML file into the grandMA2 show patch, replacing layer data destructively. Generates layers first, then confirms to execute the import safely.

Instructions

Import a fixture layer XML file into the show patch (DESTRUCTIVE).

Navigates to EditSetup/Layers context, imports the XML layer file,
then returns to root context. Use generate_fixture_layer_xml to
create the XML file before calling this tool.

The file must exist in the MA2 importexport directory:
  C:\ProgramData\MA Lighting Technologies\grandma\gma2_V_3.9.60\importexport\

Args:
    filename: Layer XML filename without extension or path
    layer_index: Target layer slot. None = MA2 picks next free slot
    confirm_destructive: Must be True to execute

Returns:
    str: JSON with steps list (command + response per step), filename, risk_tier

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

Input Schema

NameRequiredDescriptionDefault
filenameYes
layer_indexNo
confirm_destructiveNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it declares the operation DESTRUCTIVE, describes the context navigation side effect (EditSetup/Layers then back to root), and specifies the required filesystem location. It omits what happens if layer_index is already occupied (overwrite vs. error), which is a meaningful gap for a destructive import.

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?

The destructive warning is front-loaded in the first sentence, followed by behavior, prerequisite, constraint, and args. The Args block lightly restates the schema, but each entry adds real meaning rather than echoing types, so waste is minimal.

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 destructive 3-parameter import, the description covers purpose, safety gate, file location, side effects, and return shape (JSON steps, filename, risk_tier). Remaining gaps are error/failure behavior and slot-collision semantics; the explicit Returns section is slightly redundant given an output schema exists.

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%, and the description fully compensates: filename is 'without extension or path', layer_index None means 'MA2 picks next free slot', and confirm_destructive is a required execution gate. These are non-obvious semantics the bare schema would not convey.

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 line states a specific verb and resource ('Import a fixture layer XML file into the show patch') and flags the destructive nature. It also names the companion tool generate_fixture_layer_xml, so the agent can place this tool relative to a known sibling without opening schemas.

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 a clear prerequisite ('Use generate_fixture_layer_xml to create the XML file before calling this tool') and a hard gate ('confirm_destructive: Must be True to execute'). It does not state when to prefer this over import_objects or import_fixture_type, so it stops short of full alternative routing.

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