Skip to main content
Glama
grandMA2 MCP
by drohi-r

detect_programmer_contamination

Detect leftover programmer state before critical grandMA2 operations, including selected fixtures, filters, worlds, MAtricks, and parked fixtures to prevent cue or preset contamination.

Instructions

Check for leftover programmer state before critical operations (SAFE_READ).

Detects: selected fixtures, active filters, active worlds, MAtricks state,
highlight/freeze/solo modes, and parked fixtures. Run this before storing
cues, presets, or making show-critical changes.

Returns:
    str: JSON with contaminated bool, checks[], recommendation.

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": "detect_programmer_contamination"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does solid work: it tags the operation as SAFE_READ, makes clear it only inspects state, and enumerates the specific checks performed. It does not explicitly state that nothing is modified as a side effect, leaving that inference to the reader.

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 purpose and the 'before critical operations' cue, then a compact bullet list of detected conditions, then usage. Every sentence earns its place; the only slight redundancy is the 'Returns: str' block, whose content is already covered by the 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 zero-parameter, read-only diagnostic with an output schema, the definition covers purpose, scope of detection, and when to invoke it — enough to call it correctly. The return-value prose duplicates the output schema rather than adding interpretation of the 'recommendation' field, which is the one remaining gap.

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?

The tool takes zero parameters, so there is no parameter meaning to add; the baseline applies. The description correctly spends no words on phantom inputs.

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?

The description gives a specific verb and resource ('Check for leftover programmer state') and enumerates exactly what it inspects: selected fixtures, active filters, active worlds, MAtricks state, highlight/freeze/solo modes, and parked fixtures. It is clearly a read-only diagnostic, distinguishable in intent from mutating siblings like clear_programmer, but it never names a sibling to sharpen that contrast.

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?

'Run this before storing cues, presets, or making show-critical changes' gives concrete trigger conditions, which is more than most definitions offer. It stops short of stating when not to bother or pointing to the remediation tool (e.g. clear_programmer) once contamination is found.

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