Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

instantiate_template_assets

Generate 3D web application assets by instantiating template assets in the PlayCanvas Editor MCP Server.

Instructions

Instantiate one or more template assets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesThe asset IDs of the template assets to instantiate

Implementation Reference

  • Registers the 'instantiate_template_assets' MCP tool, including input schema (array of AssetIdSchema) and handler that calls wss.call('assets:instantiate', ids).
    mcp.tool(
        'instantiate_template_assets',
        'Instantiate one or more template assets',
        {
            ids: z.array(AssetIdSchema).nonempty().describe('The asset IDs of the template assets to instantiate')
        },
        ({ ids }) => {
            return wss.call('assets:instantiate', ids);
        }
    );
  • AssetIdSchema definition used for validating asset IDs in the tool's input.
    export const AssetIdSchema = z.number().int().nullable().describe('An asset ID.');
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions 'instantiate' which implies a creation/mutation operation, but doesn't disclose behavioral traits like whether this requires specific permissions, if it's idempotent, what happens on failure, or what the output looks like. For a mutation tool with zero annotation coverage, this is inadequate.

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?

The description is a single, efficient sentence with no wasted words. It's front-loaded with the core action. However, it's arguably too concise given the lack of context for a mutation tool with no annotations or output schema.

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 mutation tool ('instantiate' implies creation/write) with no annotations and no output schema, the description is incomplete. It doesn't explain what 'instantiate' entails, potential side effects, error conditions, or return values. Given the complexity and lack of structured data, more context is needed.

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%, so the schema fully documents the 'ids' parameter. The description adds no additional meaning beyond what's in the schema (e.g., what template assets are, format of IDs, or constraints). Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the verb ('instantiate') and resource ('template assets'), making the basic purpose clear. However, it's vague about what 'instantiate' means in this context (e.g., creating instances from templates, cloning, activating) and doesn't distinguish from siblings like 'create_assets' or 'duplicate_entities' which might have overlapping functionality.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites, appropriate contexts, or exclusions. With siblings like 'create_assets' and 'duplicate_entities' that might handle similar operations, the lack of differentiation leaves usage unclear.

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

Related 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