Skip to main content
Glama

unity_playmode

Control Unity Editor play mode to start, stop, pause, unpause, or step simulation for automated scene and gameplay testing.

Instructions

Enter/exit/pause play mode. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)

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

Input Schema

NameRequiredDescriptionDefault
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 add real behavioral context: the editor is offline, schemas are cached, and calls will fail until reconnection. That is genuinely useful and non-obvious. It omits other important traits, though – notably whether stopping play mode discards runtime state or unsaved changes, and whether any of these actions are blocking.

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?

Two short sentences with no filler, and the core capability is front-loaded before the operational caveat. The parenthetical caveat is somewhat compressed, but nothing is wasted.

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 single-enum tool with no output schema and no annotations, the critical gaps are what happens to runtime state on stop and the fact that the tool is currently non-functional. The offline warning is covered, but the state-transition semantics are not, leaving the definition only minimally complete for a mode-switching tool.

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?

There is one required parameter at 0% schema description coverage, but it is a self-documenting enum (play, stop, pause, unpause, step). The description maps "enter" and "exit" onto play/stop, yet says nothing about "step" or "unpause", so it covers only part of the enum's semantics.

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?

"Enter/exit/pause play mode" gives a specific verb set and a specific resource (the Unity editor's play mode), which is enough to separate it from siblings like unity_runtime or unity_status. It does not explicitly name a sibling to avoid, so it stops short of a 5.

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 name of the state being controlled: an agent can infer it should call this when it needs to start, halt, or freeze editor play mode. There is no explicit when-not guidance, no mention of prerequisites such as a compiled/refreshed project, and no routing to alternatives.

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