Skip to main content
Glama
grandMA2 MCP
by drohi-r

analyze_patch_types

Builds a fixture-type model of the current patch by grouping fixtures by type, assigning categories, and resolving attribute capabilities for preset and fixture-selection workflows.

Instructions

Build a fixture-type model of the current patch (SAFE_READ).

Groups patched fixtures by fixture type, classifies each type into a
category (wash/mover/bar/strobe/blinder/conventional/other), and resolves
attribute capabilities (dimmer/position/gobo/color_mix/beam/focus/control)
either from live EditSetup attribute discovery or a curated fallback table.

This is the foundation for verify_fixture_id_blocks,
select_fixtures_by_type_order, run_preset_plugin, and
create_presets_for_patch.

Args:
    discover_attributes: When True, read each fixture type's ChannelType
        rows from the console (slower — several cd/list round-trips per
        type). When False, use the curated fallback capability table.

Returns:
    str: JSON with types (capabilities, category, members), categories,
    unmatched_fixtures, fixture_count, risk_tier.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_patch_types"
  }
}

Input Schema

NameRequiredDescriptionDefault
discover_attributesNo

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 full behavioral burden and does well: it marks the operation as SAFE_READ, explains that discovery mode causes slower console round-trips, and describes the fallback capability table. It adds useful context about the returned JSON structure, though it does not discuss permissions or failure modes.

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 description is front-loaded and structured with Args and Returns sections, and the category and capability lists are informative rather than filler. It is slightly long, but the added detail is useful for understanding scope and the parameter tradeoff.

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?

The tool has an output schema, so the description need not fully document return values, but it still summarizes the JSON fields. Combined with the parameter explanation and SAFE_READ designation, it gives enough context for an agent to invoke the tool correctly, with only minor gaps around preconditions or error behavior.

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 explain the single parameter, and it does so thoroughly. It states that discover_attributes=True reads ChannelType rows from the console and is slower, while False uses the curated fallback capability table, adding performance and data-source meaning beyond the boolean 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?

The description uses a specific verb and resource: it builds a fixture-type model of the current patch, groups patched fixtures by type, assigns categories, and resolves attribute capabilities. It also names four downstream tools that depend on this analysis, which makes its role distinct from siblings like list_fixture_types.

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?

The description clearly positions the tool as foundational for verify_fixture_id_blocks, select_fixtures_by_type_order, run_preset_plugin, and create_presets_for_patch, so an agent knows to call it before those workflows. It also explains the tradeoff for discover_attributes, though it does not explicitly state when not to use this tool versus a simpler listing tool.

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