Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

create_branch

Create a new branch in PlayCanvas and switch the editor to it. Fork from the current branch or optional source branch/checkpoint to isolate feature work and return the new branch's VCS status.

Instructions

Create a new branch (scope a feature on its own branch) and switch the editor to it. Branches from the current branch by default. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status on the new branch. Name must be unique in the project and at most 1000 characters. When NOT to use: to switch to an existing branch (use switch_branch).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for the new branch
sourceBranchIdNoBranch to fork from (defaults to the current branch)
sourceCheckpointIdNoCheckpoint on the source branch to fork from (defaults to its latest)
Behavior5/5

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

Discloses significant non-obvious behavior beyond the annotations: the editor reloads, the tool waits for reconnect, and it returns the resulting vcs_status on the new branch. It also states the uniqueness constraint and maximum name length. Nothing in the description contradicts the annotations.

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?

Every sentence earns its place: action and purpose, default source behavior, important reload/return behavior, naming constraints, and the explicit alternative. The description is compact, front-loaded, and free of redundancy.

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

Completeness5/5

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

For a creating-and-switching tool with no output schema, the description covers the essential behavioral context: creation, switching, reload, return value, name constraints, and the sibling alternative. The remaining parameter details are fully covered by the input schema, so nothing necessary for correct invocation is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds extra meaning by specifying the uniqueness requirement for 'name' and explicitly calling out the default source branch, which complements the schema's 'defaults to the current branch' note. It does not repeat all parameter details, but the schema already documents them well.

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?

States the specific operation ('Create a new branch'), its purpose ('scope a feature on its own branch'), and the immediate side effect ('switch the editor to it'). It also distinguishes itself from switch_branch by explicitly naming the alternative in the NOT-to-use note.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance on when to use the tool ('create a new branch') and, more importantly, when not to use it ('to switch to an existing branch, use switch_branch'). It also clarifies default branching behavior and uniqueness requirements, which gives an agent enough context to decide between create_branch and switch_branch.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/playcanvas/editor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server