Skip to main content
Glama
grandMA2 MCP
by drohi-r

run_preset_plugin

Orchestrates a preset or color-picker plugin end-to-end: validates manifest preconditions, builds required fixture selection, runs the plugin, and reports created outputs; dry-run is default.

Instructions

Orchestrate a preset/color-picker plugin run end-to-end (DESTRUCTIVE).

Pipeline: (1) resolve the plugin in the pool; (2) verify preconditions
from its manifest — required groups exist, declared pool ranges are free;
(3) build the type-ordered fixture selection the plugin expects;
(4) run the plugin; (5) diff the output pools and report what was created.

Manifests for known plugins ship in src/plugin_manifests.py (e.g.
"auto-layout-color-picker"); pass manifest_overrides to adjust pool
ranges or required groups per show, or to describe an unknown plugin.

Args:
    plugin_name: Plugin pool name or builtin manifest key.
    manifest_overrides: Optional dict overriding manifest fields
        (pool_ranges, required_groups, selection, outputs).
    dry_run: When True (default) run only phases 1-3 and report the plan.
    confirm_destructive: Must be True to execute with dry_run=False.

Returns:
    str: JSON with plugin, preconditions, selection_commands, executed,
    outputs_created (per pool diff), blocked, risk_tier.

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": {
      "plugin_name": "<plugin_name>"
    },
    "name": "run_preset_plugin"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
plugin_nameYes
manifest_overridesNo
confirm_destructiveNo

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?

No annotations are supplied, so the description carries the full burden, and it does so well: it flags DESTRUCTIVE in caps, explains the two-gate safety model (dry_run default true plus explicit confirm_destructive), and discloses that output pools are diffed and reported. It omits permission/auth requirements and whether created outputs can be rolled back.

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?

Well front-loaded with the destructive warning and an ordered pipeline; the Args section is tight and each entry earns its place. The Returns block partially duplicates the existing output schema, which is mild redundancy but aids skimming.

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 destructive multi-phase orchestrator with a free-form override object and no annotations, the description supplies pipeline order, safety gating, manifest location, and output shape — everything needed to call it safely, with return values also backed by an output schema.

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%, yet every parameter is documented with real meaning: plugin_name accepts a pool name or builtin manifest key, manifest_overrides names its expected fields (pool_ranges, required_groups, selection, outputs), and dry_run/confirm_destructive are tied to the execution gate rather than merely restated.

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 ('Orchestrate a preset/color-picker plugin run end-to-end') and enumerates the five-phase pipeline, so an agent knows exactly what the tool does and how it differs from lower-level siblings like call_plugin_tool or apply_preset.

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?

Gives clear operational context: dry_run defaults to planning phases 1-3, confirm_destructive must be True to actually execute, and manifest_overrides is for per-show adjustments or unknown plugins. It stops short of explicitly naming which sibling to use instead when only a plain plugin call or preset apply is wanted.

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