Skip to main content
Glama
grandMA2 MCP
by drohi-r

import_objects

Imports objects from a file into the grandMA2 show, routing by destination type and requiring destructive confirmation before modifying the show.

Instructions

Import objects from a file into the show (DESTRUCTIVE — modifies show file).

MA2 locates the file using the destination type to determine the correct
subfolder automatically (same routing as export). The file must exist in
the grandMA2 data directory before calling this tool.

Files are read from: C:\ProgramData\MA Lighting Technologies\grandma\gma2_V_3.9.60\
  - Macro → macros/    Effect → effects/    Plugin → plugins/
  - MAtricks → matricks/    Mask → masks/
  - All others → importexport/

Supported destination types (17 validated):
  group, preset, macro, effect, sequence, view, page, camera, layout,
  form, plugin, matricks, mask, image, executor, timecode, userprofile

(Screen is export-only — import gives RESIZE FORBIDDEN error.)

Preset destination_id format: "T.N"  e.g. "1.99" = Dimmer slot 99

Args:
    filename: Source filename — no extension, no path needed
    destination_type: Object type for placement (REQUIRED — MA2 Error #28 without it)
    destination_id: Slot number or preset ref ("T.N"). None = next free slot.
    quiet: Suppress MA2 feedback output during import
    confirm_destructive: Must be True to execute

Returns:
    str: JSON with command_sent, raw_response, 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>",
      "destination_type": "<destination_type>"
    },
    "name": "import_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
quietNo
filenameYes
destination_idNo
destination_typeYes
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 supplied, the description carries the full burden and does so: it declares DESTRUCTIVE intent, requires an explicit confirmation flag, cites MA2 Error #28 when destination_type is omitted, and documents the RESIZE FORBIDDEN failure for Screen. It also discloses the exact filesystem root and per-type subfolder mapping, which an agent cannot infer from the schema.

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-loads the destructive warning, then uses clear labeled sections (file locations, supported types, args, returns). The 17-type list and the subfolder mapping are long but each carries information absent from the schema; minor verbosity in the path block is the only cost.

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 destructive 5-parameter tool with no annotations and 0% schema coverage, the description supplies prerequisites, enumerated valid types, ID formats, failure modes, and even the return shape. An agent has everything needed to invoke it correctly and safely.

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%, yet the description documents all five parameters: filename (no extension, no path), destination_type (required, with 17 validated values enumerating the allowed set in lieu of a schema enum), destination_id (string slot or 'T.N' preset format, None = next free slot), quiet, and confirm_destructive. This compensates fully for the empty 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 and resource ('Import objects from a file into the show') and immediately flags the destructive nature. It is clearly distinguishable from export_objects and the fixture-import siblings by naming the destination-type routing model it shares with export, and by explicitly noting 'Screen is export-only — import gives RESIZE FORBIDDEN error.'

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?

Gives concrete preconditions: the file must already exist in the grandMA2 data directory, per-type subfolder routing is automatic, and confirm_destructive must be True to execute. It also rules out an invalid target (Screen). It does not explicitly say when to prefer a different tool (e.g. export_objects) beyond the routing comparison, 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