Skip to main content
Glama

wait_for_unity_compile

Pause commands until Unity finishes compiling and asset updates, then return compiler diagnostics; use it before editor operations and poll original command IDs after timeouts.

Instructions

Wait until Unity is no longer compiling or updating assets. Waits through stale heartbeat/domain reload up to timeoutMs; requires a fresh settled Editor and completed compilation. Returns compiler diagnostics. A timeout does not cancel pending commands; poll their original IDs instead of resubmitting.

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

Input Schema

NameRequiredDescriptionDefault
timeoutMsNoMaximum time to wait for Unity to settle
maxResponseBytesNoMaximum UTF-8 bytes of the complete result text. Omitted entries are reported; narrow filters or explicitly raise the budget for more detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A4.1/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 burden and does substantial work: it discloses that stale heartbeats and domain reloads are waited through, that the timeout is bounded by timeoutMs, and critically that a timeout does not cancel pending commands. It does not state whether the call itself has side effects or what happens to the connection during a long wait, but the key operational traps are covered.

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?

Three sentences, front-loaded with the core wait condition, then the mechanics, then the timeout caveat. Every sentence carries information, though the middle sentence ('stale heartbeat/domain reload up to timeoutMs') is dense jargon that assumes Unity-internals familiarity.

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?

No output schema exists, and the description compensates by stating that compiler diagnostics are returned. For a two-parameter blocking wait, the essentials — condition, bound, return content, post-timeout behavior — are all present. Only the effect of the response-size budget on returned diagnostics is left implicit.

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 both timeoutMs and maxResponseBytes are already documented in the schema. The description references timeoutMs as the wait ceiling, adding minor reinforcing context, but says nothing about maxResponseBytes or the trade-off between result truncation and the wait. Baseline 3 is appropriate when the schema does the heavy lifting.

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 first sentence names a specific condition and resource: wait until Unity is no longer compiling or updating assets. That is a precise verb+state+resource statement that an agent can match to a compile-blocked workflow, and it reads distinctly from siblings like get_unity_command_status or check_import_status which poll rather than block.

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?

It tells the agent what to do after a timeout ('poll their original IDs instead of resubmitting'), which is genuine routing guidance toward the status-polling sibling. It also states the precondition that a fresh settled Editor with completed compilation is required. What it lacks is an explicit statement of when to call this versus when to just poll status directly.

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