Skip to main content
Glama
grandMA2 MCP
by drohi-r

assign_object

Assign sequences, functions, fade times, or layout positions on a grandMA2 console; destructive changes require confirm_destructive=True.

Instructions

Assign objects, functions, fades, or layout positions on the console.

SAFETY: This is a DESTRUCTIVE operation. Requires confirm_destructive=True.

Args:
    mode: Assignment mode:
        "assign" — assign source object to target (e.g. sequence to executor)
        "function" — assign a function to an executor (e.g. Toggle, Flash)
        "fade" — assign a fade time to a cue
        "layout" — assign an object to a layout position
        "empty" — deactivate an executor (assign empty function)
        "temp_fader" — assign temp fader function to an executor
    confirm_destructive: Must be True to execute (safety gate)
    source_type: Source object type (for "assign" and "layout" modes)
    source_id: Source object ID (for "assign" and "layout" modes)
    target_type: Target object type (for "assign", "function", "empty", "temp_fader")
    target_id: Target object ID
    function: Function name for "function" mode (e.g. "Toggle", "Flash", "Go")
    fade_time: Fade time in seconds for "fade" mode
    cue_id: Cue ID for "fade" mode
    sequence_id: Sequence ID for "fade" mode
    layout_id: Layout ID for "layout" mode
    x: X position for "layout" mode
    y: Y position for "layout" mode
    noconfirm: Skip console confirmation dialog

Returns:
    str: JSON with command_sent, raw_response, or block info.

Examples:
    - Assign sequence 1 to executor 6: mode="assign", source_type="sequence",
      source_id=1, target_type="executor", target_id=6
    - Assign Toggle to executor 101: mode="function", function="Toggle",
      target_type="executor", target_id=101
    - Assign fade 3s to cue 5: mode="fade", fade_time=3, cue_id=5
    - Assign group to layout: mode="layout", source_type="group", source_id=1,
      layout_id=1, x=5, y=2
    - Empty executor 1: mode="empty", target_type="executor", target_id=1

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": {
      "mode": "<mode>"
    },
    "name": "assign_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
modeYes
cue_idNo
functionNo
fade_timeNo
layout_idNo
noconfirmNo
source_idNo
target_idNo
sequence_idNo
source_typeNo
target_typeNo
confirm_destructiveNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description steps up by declaring a 'DESTRUCTIVE operation' that 'Requires confirm_destructive=True', and it discloses the effect of noconfirm (skips console confirmation) and the return shape (command_sent, raw_response, block info). It stops short of saying what existing assignment is overwritten on the target or what a blocked call looks like.

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 purpose and a SAFETY line before the argument detail, followed by mode-keyed args, a return note, and worked examples. Given 14 parameters across six modes the length is earned, though the Returns section is partly redundant with the existing output schema.

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, high-arity, multi-mode tool the description covers the safety gate, per-mode parameter contracts, and call examples, which is most of what an agent needs. The remaining gap is sibling disambiguation among the several assign_* tools and any note on permissions or reversibility.

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 coverage is 0% across 14 parameters, so the description carries the entire semantic load — and it does, documenting every parameter and, crucially, scoping each to the mode(s) where it applies (source_type/source_id for 'assign' and 'layout', fade_time/cue_id/sequence_id for 'fade', x/y for 'layout'). This is meaning the schema alone could never convey and prevents an agent from passing irrelevant parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and object set — 'Assign objects, functions, fades, or layout positions on the console' — and the mode enumeration clarifies the four distinct capabilities. It does not, however, distinguish itself from sibling tools such as assign_effect_to_executor, assign_temp_fader, or assign_cue_trigger, which overlap with the 'function' and 'temp_fader' modes.

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?

Each mode is annotated with what it does and which parameters apply ('assign source object to target', 'assign a fade time to a cue'), and five concrete examples show realistic call shapes. What's missing is any exclusion or routing guidance relative to sibling assign_* tools, so an agent facing 'assign temp fader' must guess between this tool's temp_fader mode and the assign_temp_fader sibling.

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