Skip to main content
Glama

control_play_mode

Starts, pauses, resumes, or stops Unity Play Mode while waiting for compilation and editor state changes, helping AI clients coordinate editor operations reliably.

Instructions

Start, pause, resume, or stop Unity Play Mode. Waits for Unity's exported editor state to reach the requested state and for compilation to finish, including across a domain reload. Requires BanterMCPBridge extension to be installed and Unity Editor running.

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": {
      "action": "<action>"
    },
    "name": "control_play_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesRequested Play Mode action
timeoutMsNoMaximum time to wait for Unity to reach the requested state

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose genuinely useful behavior: the call blocks until the requested state is reached, waits for compilation, and survives a domain reload, plus it requires the BanterMCPBridge extension and a running Editor. It does not say what happens on timeout expiry, whether the call errors or returns the last observed state, or whether stopping discards unsaved scene changes.

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?

Three short sentences, front-loaded with the action set, then the blocking semantics, then the prerequisites. Nothing is repeated and every sentence adds information an agent needs before calling.

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 mutation tool with no annotations and no output schema, the definition covers purpose, blocking behavior, reload tolerance, and prerequisites well. The remaining gap is failure and return semantics on timeout, which matters because there is no output schema to describe the result.

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 parameters are already documented, including the action enum and the timeoutMs bounds. The description adds only marginal meaning, chiefly that the wait spans a domain reload, which explains why a long timeout is useful. 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 description opens with a specific set of verbs (start, pause, resume, stop) applied to a named resource (Unity Play Mode), which maps directly to the action enum. An agent can tell this is a play-mode state controller rather than a generic editor-menu or command-status tool without opening the schema.

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?

Usage is implied by the verb list: call it when you need to change Play Mode state. There is no explicit when-not guidance and no routing to alternatives, even though siblings like execute_editor_menu_item could plausibly enter play mode. The prerequisites are stated, but not the choice conditions.

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