Skip to main content
Glama
grandMA2 MCP
by drohi-r

export_objects

Exports grandMA2 show-file objects to disk as XML, CSV, or HTML, routing each object type to its correct data subfolder. Requires explicit destructive confirmation before writing.

Instructions

Export objects from the show file to disk (DESTRUCTIVE — writes files).

Files are written to the grandMA2 data directory. MA2 routes each type
to its own subfolder automatically:
  - Macro → macros/    Effect → effects/    Plugin → plugins/
  - MAtricks → matricks/    Mask → masks/
  - All others → importexport/

On this system: C:\ProgramData\MA Lighting Technologies\grandma\gma2_V_3.9.60\

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

Preset syntax for object_id:
  - Single preset:  "1.3"  (type 1=Dimmer, 2=Position, 3=Gobo, 4=Color,
                             5=Beam, 6=Focus, 7=Control, 8=Shapers, 9=Video)
  - All of a type:  "1"    (exports all dimmer presets)
  - Range:          "1 thru 5"

Args:
    object_type: Object type (case-insensitive)
    object_id: ID, preset ref ("1.3"), range ("1 thru 5"), or name (UserProfile)
    filename: Output filename — no extension, no path needed
    style: "csv" or "html" — default is xml
    overwrite: Replace existing file without prompting
    confirm_destructive: Must be True to execute

Returns:
    str: JSON with command_sent, raw_response, risk_tier, data_path

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": {
      "object_type": "<object_type>",
      "object_id": "<object_id>",
      "filename": "<filename>"
    },
    "name": "export_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNo
filenameYes
object_idYes
overwriteNo
object_typeYes
confirm_destructiveNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/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 flags DESTRUCTIVE up front, discloses that MA2 auto-routes file types to per-type subfolders, gives the concrete data directory, and states that confirm_destructive must be True to execute. Return shape is also previewed.

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 and destination are front-loaded, and the type list, preset syntax and arg notes are scannable. It is long, but nearly every line carries operational meaning; the "Returns" block is the one piece that partly duplicates the output schema.

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 six-parameter destructive export with no annotations, the definition covers destination, per-type routing, supported types, ID syntax, filename constraints, style options and the confirmation gate. Since an output schema exists, the brief return note is sufficient rather than redundant.

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 for all six parameters, and it does: object_id documents preset syntax ("1.3"), type-only ("1"), ranges ("1 thru 5") and name lookup; filename documents no extension/no path; style documents the csv/html options and the xml default; overwrite and confirm_destructive are explained behaviorally.

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 (export objects from the show file to disk), names the destination and even the physical path, and lists the 19 supported object types. An agent can distinguish this from import_objects on name and content alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied through detail (destructive write, requires confirm_destructive, overwrite to skip prompts) but the description never states when to choose this over a sibling such as import_objects, nor any when-not conditions. Adequate context, no explicit 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