Skip to main content
Glama

unity_run_workflow

Run a node graph against the Unity editor in one call, executing dependent steps in order with {{nodeId.field}} placeholders and returning per-node outputs and errors.

Instructions

Run a node graph against the Unity editor in one call. Pass either a saved workflow file name or an inline graph. Nodes run in dependency order; a node reads upstream output with {{nodeId.field}} placeholders. Returns per-node outputs plus errors. Use this instead of many separate calls when a job has several dependent steps. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)

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

Input Schema

NameRequiredDescriptionDefault
fileNosaved workflow file name (see unity_list_workflows), e.g. "构建一个场景.json"
graphNoinline graph: {name, nodes:[{id,tool,args,when?}], edges:[{from,to}]}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden and does substantial work: dependency-ordered execution, the {{nodeId.field}} substitution grammar, and that the response includes per-node outputs plus errors. It does not state failure semantics (does a node error abort the graph?) or that nodes may invoke destructive sibling tools, which matters for an unannotated orchestrator.

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 purpose, then parameter options, execution semantics, return shape, selection guidance, and an operational caveat — each sentence in its own slot with no redundancy. The parenthetical offline notice is placed last where it does not obstruct scanning.

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 two-parameter tool with a nested graph object and no output schema, the description covers invocation, templating, and return contents, plus a live availability caveat. The main gap is failure behavior and whether partial results survive when a node fails, which an agent planning a multi-step graph would want to know.

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

Parameters3/5

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

Schema coverage is 100%, so the baseline is 3, and the schema already spells out the inline graph shape. The description does add the either/or framing for file vs inline graph, which the schema does not express since neither parameter is required, but it adds little else beyond what the property descriptions already say.

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 ('Run a node graph against the Unity editor in one call') and frames it as orchestration, which distinguishes it from single-call siblings like unity_run_csharp or unity_invoke. The agent knows immediately this is a batch/DAG executor rather than a single-operation tool.

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?

Explicitly says to use it 'instead of many separate calls when a job has several dependent steps', which is a real selection rule against the dominant alternative pattern. It stops short of naming a sibling or stating a when-not condition (e.g. single-step jobs), so it is clear but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.