Skip to main content
Glama

set_play_mode

Control Unity Play mode by starting, stopping, pausing, or resuming scene testing from the MCP server.

Instructions

Start, stop or pause Play mode.

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

Input Schema

NameRequiredDescriptionDefault
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare it is a non-read-only, non-destructive, non-open-world operation, so the mutation intent is covered. The description adds nothing beyond that: it does not say that stopping play mode typically discards runtime changes, whether the action is idempotent if already playing, or what the tool returns on success/failure.

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?

A single short sentence with the action verbs front-loaded and zero filler. Its brevity is close to the point of under-specification rather than verbosity, but structurally it is clean.

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

Completeness2/5

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

For a one-parameter tool with no output schema and no parameter documentation, the description is too thin: it omits one enum action and gives no information about side effects or result state. An agent could call it, but cannot predict consequences such as loss of unsaved play-mode changes.

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

Parameters2/5

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

Schema coverage is 0%, so the description must carry the parameter meaning, and it only partially does: it names play, stop and pause but never mentions 'unpause', which is a valid enum value. Enum labels are largely self-explanatory, but the mismatch leaves one action undocumented and the meaning of pause vs stop unclarified.

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?

States a specific verb set (start, stop, pause) against a specific resource (Play mode), so an agent can immediately tell it controls editor play state. It does not differentiate from siblings, but no sibling plausibly overlaps with play-mode control.

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 only implied: an agent can infer you call this to enter or leave play mode. There is no guidance on prerequisites (e.g. needing an open editor), on what to do while playing, or on which action to prefer in edge cases such as already being in play mode.

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