Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

instantiate_template_assets

Turn template assets into scene entity hierarchies by instantiating them. Use to add template-based objects, returning summaries of created entities.

Instructions

Instantiate template assets into the scene, creating entity hierarchies from them. Returns the created entity summaries. When NOT to use: for non-template assets (only type="template" assets can be instantiated) or to build an entity from scratch (use create_entities).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesTemplate asset ids to instantiate
indexNoInsertion index under the parent
parentIdNoParent entity resource_id; defaults to the scene root

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed7 schema fields changedv0.7.0
    • changedInput schema / properties / ids / description
      Previous value: -"The asset IDs of the template assets to instantiate"New value: +"Template asset ids to instantiate"
    • removedInput schema / properties / ids / items / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / ids / items / description
      Previous value: -"An asset ID."New value: +"Asset ID"
    • addedInput schema / properties / ids / items / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / ids / items / type
      Added value: +"integer"
    • addedInput schema / properties / index
      Added value: +{
      +  "description": "Insertion index under the parent",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / parentId
      Added value: +{
      +  "description": "Parent entity resource_id; defaults to the scene root",
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

The description discloses the core behavior beyond the annotations: it creates entity hierarchies in the scene and returns the created entity summaries. It also states the template-only restriction. Annotations already mark the operation as non-read-only and non-idempotent, so the description adds meaningful behavioral context without contradicting them.

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?

Two tightly packed sentences: the first states the operation, effect, and return value; the second gives explicit exclusions and the alternative. No filler, and the key constraint is presented clearly.

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 tool with three params, one required, and schema fully documenting them, the description is complete. It states the output, the input restriction, and the alternative for a different use case. An agent has enough context to select and invoke it correctly.

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 description coverage is 100%, with all three parameters already documented in the input schema. The tool description doesn't add parameter-specific detail, but it doesn't need to because the schema carries that weight. Repeating parameter meaning would be redundant.

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 states a specific verb ('Instantiate') and resource ('template assets') plus the outcome ('creating entity hierarchies from them') and return value. It also explicitly contrasts itself with create_entities, making its purpose unmistakable even among many sibling tools.

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?

The description explicitly says when NOT to use the tool: for non-template assets, since only type="template" assets can be instantiated, and for building an entity from scratch, where create_entities is the alternative. This gives clear decision criteria for an agent.

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