Skip to main content
Glama
grandMA2 MCP
by drohi-r

resolve_object_ref

Convert pool object names or IDs into correctly quoted grandMA2 command tokens via an in-memory lookup, eliminating telnet calls.

Instructions

    Resolve a pool object name or ID to a correctly-quoted MA2 command token.
    Uses in-memory index only — zero telnet cost.

    match_mode="literal" (default): quotes names with special chars; * is literal.
    match_mode="wildcard": * is active operator — may match multiple objects.

    Args:
        object_type: Group | Sequence | Preset | Macro | Effect | Timecode |
                     Timer | View | Layout | World | Filter | Page |
                     Executor | Fixture | Channel | Cue
        name:        Display name (use name OR id, not both)
        id:          Numeric ID (0 = not provided)
        match_mode:  "literal" (default) or "wildcard"
        preset_type: Required for Preset objects (1=Dimmer … 9=Video)
    

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

Input Schema

NameRequiredDescriptionDefault
idNo
nameNo
match_modeNoliteral
object_typeYes
preset_typeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantive work: it discloses the data source (in-memory index, no telnet round-trip) and the cardinality risk that wildcard mode may resolve to multiple objects. It does not state what happens when a name or ID fails to resolve, though the presence of an output schema covers the return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-line purpose, then the index-cost note, then mode semantics, then an Args block. The Args list duplicates schema field names but earns its place given 0% schema description coverage, and no sentence is filler.

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 five-parameter resolver with no annotations but a declared output schema, the description covers source of truth, quoting behavior, mode semantics, and per-parameter meaning. The remaining gap — unresolved-name error behavior — is partly absorbed by the output schema, so an agent has enough to call this correctly.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it largely does: it enumerates the valid object_type values, clarifies the name/id mutual exclusivity, gives the 0-means-not-provided sentinel for id, and explains preset_type is required for Preset. The preset_type mapping is elided ('1=Dimmer … 9=Video'), leaving the middle values undocumented in both schema and prose.

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 outcome: resolving a pool object name or ID into a correctly-quoted MA2 command token. This distinguishes it clearly from sibling lookups like discover_object_names or get_object_info, since the product here is a command-ready token, not a listing or metadata dump.

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?

Explains the mode choice explicitly: literal (default) quotes names with special chars and treats * as literal, while wildcard activates * as an operator that may match multiple objects. 'Uses in-memory index only — zero telnet cost' implies the cheap path versus telnet-based alternatives, but no sibling tool is named as an alternative, so the routing guidance stops short of explicit exclusions.

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