Skip to main content
Glama

set_unity_build_scenes

Replace Unity Editor build scenes with an ordered list after validating Assets/*.unity paths and rejecting duplicates before ProjectSettings changes. Read existing scenes first to preserve entries.

Instructions

Replace Unity Editor build scenes with an explicit ordered list. Every path is preflighted as an existing Assets/.../*.unity asset and duplicate paths fail before ProjectSettings are changed. Read get_unity_scenes first when preserving existing entries.

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": {
      "scenes": "<scenes>"
    },
    "name": "set_unity_build_scenes"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenesYesComplete ordered build scene list; an empty list clears build settings

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses preflight validation of every path as an existing Assets/.../*.unity asset, that duplicate paths fail, and that failures occur before ProjectSettings are changed (i.e., failure is non-destructive). It does not mention editor connectivity prerequisites or the response shape, leaving a small gap.

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, each earning its place: mutation semantics, validation/failure guarantees, then the prerequisite read for preservation. The destructive-action context is front-loaded rather than buried.

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 single-parameter destructive tool with no annotations and no output schema, the description covers the critical unknowns: overwrite semantics, validation, and atomic-ish failure behavior. Only the return value and any editor-connection requirements are left unstated, which is minor here.

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% and the single parameter already documents the ordered scene list and the empty-list-clears-build-settings behavior in its own description. The tool description only reinforces that order is explicit and that duplicate paths are rejected, adding modest meaning beyond the schema.

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 the specific verb+resource pair 'Replace Unity Editor build scenes' and clarifies the semantics as an 'explicit ordered list', which immediately separates it from the read-only sibling get_unity_scenes. An agent knows exactly what is being mutated and in what form.

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 gives a concrete prerequisite workflow: read get_unity_scenes first when preserving existing entries, which implicitly warns that this tool overwrites rather than appends. There is no explicit statement of when not to use it, but the replace-versus-preserve guidance covers the main decision point.

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