Skip to main content
Glama
grandMA2 MCP
by drohi-r

run_agent_goal

Execute a high-level lighting production goal by decomposing it into a safety-validated plan, running verified steps, and returning a structured trace.

Instructions

Execute a high-level production goal using the agent runtime.

The agent runtime decomposes the goal into a sequenced plan, validates
it against safety policies, executes steps with verification, and
produces a structured execution trace.

SAFETY: Destructive steps require confirmation. Set auto_confirm=True
to skip confirmation prompts (use with caution).

Args:
    goal: Natural language goal, e.g. "Patch 8 Mac 700 fixtures
        starting at address 1.001 and assign to executor 1"
    auto_confirm: If True, auto-confirm all destructive steps.
        If False (default), destructive steps remain blocked unless
        the runtime can obtain an explicit confirmation callback.
    dry_run: If True, generate and validate the plan but do NOT
        execute it. Returns the plan and policy warnings.

Returns:
    str: JSON execution trace with goal, plan, steps, result,
        and timing information.

Examples:
    - "List all groups" → discovery workflow
    - "Patch 4 Mac 700 fixtures at 1.001" → patch workflow
    - "Create a color preset for group 1" → preset workflow

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": {
      "goal": "<goal>"
    },
    "name": "run_agent_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYes
dry_runNo
auto_confirmNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 full disclosure burden and does a solid job: it states that plans are policy-validated, steps are executed with verification, destructive steps require confirmation, auto_confirm bypasses that gate, and a structured trace is returned. It omits execution duration/long-running behavior and what partial-failure leaves behind, which keeps it below a 5.

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 behavior is front-loaded in the first sentence and the safety warning is elevated before the argument details, which is the right ordering. The Returns section largely duplicates the existing output schema and the Args headings restate parameter names, a small amount of removable redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex orchestration tool with an output schema available, the description covers the execution model, safety posture, and all three parameters well enough to call it correctly. What is missing is operational context an agent would want: whether execution is blocking, how long goals may take, and how confirmation callbacks are obtained when auto_confirm is False.

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 description coverage is 0%, so the description must compensate, and it documents all three parameters: goal with an example phrasing, auto_confirm with its default and the exact safety consequence, and dry_run with the specific return content (plan plus policy warnings). It adds genuine meaning beyond the bare schema titles, though it does not specify goal string length or format constraints.

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 opens with a specific verb and resource ('Execute a high-level production goal using the agent runtime') and explains the internal sequence (decompose, validate, execute, trace), which is far more than a restatement of the name. It stops short of naming the sibling plan_agent_goal, so an agent must infer the plan-only route from the dry_run note rather than from explicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The three examples map concrete goal phrasings to workflow types, which gives real usage context, and the dry_run paragraph implies a plan-only mode. However, there is no explicit when-not guidance and no routing to alternatives such as plan_agent_goal, so the agent must infer the boundary itself.

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