Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

modify_entities

DestructiveIdempotent

Update existing entities by setting or unsetting property values using dot-notation paths, with instant validation that lists valid paths to fix errors.

Instructions

Set or unset properties on existing entities by dot-notation path. Valid top-level paths: "name", "enabled", "position" ([x,y,z] local), "rotation" ([x,y,z] euler degrees), "scale" ([x,y,z]), "tags". Component properties use "components..", e.g. "components.light.intensity", "components.camera.fov", "components.render.castShadows", "components.script.scripts..attributes." (the entity must already have that component; add it with add_components first). Each edit targets one entity id + one path. Returns the post-edit summaries of the affected entities. Edits are validated on write: an unknown top-level path, or a component path for a component the entity does not have, fails immediately with a message listing the entity's valid paths/components — so you can fix it in one shot instead of retrying blind. When NOT to use: to create entities (use create_entities), to add/remove components (use add_components/remove_components), or to change scene-wide settings (use modify_scene_settings).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
editsYes

Schema Changelog

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

  1. Changed6 schema fields changedv0.7.0
    • removedInput schema / properties / edits / description
      Removed value: -"An array of objects containing the ID of the entity to modify, the path to the property to modify, and the value to set the property to."
    • removedInput schema / properties / edits / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / edits / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "description": "Entity ID",
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "set",
      +        "description": "Defaults to set",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Property path in dot notation, e.g. \"position\", \"components.light.intensity\"",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "Vectors are arrays, e.g. position [0,1,0]."
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "path",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "$ref": "#/properties/edits/items/anyOf/0/properties/id"
      +      },
      +      "op": {
      +        "const": "unset",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Component property path in dot notation",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "path",
      +      "op"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / edits / items / properties
      Removed value: -{
      -  "id": {
      -    "description": "An entity ID.",
      -    "format": "uuid",
      -    "type": "string"
      -  },
      -  "path": {
      -    "description": "The path to the property to modify. Use dot notation to access nested properties.",
      -    "type": "string"
      -  },
      -  "value": {
      -    "description": "The value to set the property to."
      -  }
      -}
    • removedInput schema / properties / edits / items / required
      Removed value: -[
      -  "id",
      -  "path"
      -]
    • removedInput schema / properties / edits / items / type
      Removed value: -"object"
  2. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag it as a destructive, non-read-only, idempotent write; the description builds on this with write-time validation behavior — unknown paths or missing components fail immediately with an error listing the entity's valid paths, enabling one-shot self-correction — plus the return shape (post-edit entity summaries) and per-edit targeting semantics. No contradiction with annotations; the idempotentHint is consistent with set/unset semantics.

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 long but front-loaded: the operative verb+resource lands in the first clause, followed by path grammar, then failure behavior, then exclusions. Every sentence carries semantic weight, though some phrasing ('so you can fix it in one shot instead of retrying blind') is mildly editorial and the example list could be trimmed without loss.

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 destructive write tool with one complex parameter, a low-coverage schema, and no output schema, the description covers virtually everything: valid values, grammar, units, prerequisites, failure mode, return shape, and sibling routing. The one remaining gap is batch semantics — if an edits array contains several entries and a later edit fails, it is not stated whether earlier edits already committed or the whole batch rolled back.

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

Parameters5/5

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

Schema description coverage is minimal, and the description compensates fully: it enumerates valid top-level paths with units and coordinate space ([x,y,z] local for position, euler degrees for rotation), gives the component-path grammar with four concrete examples, states the has-component prerequisite, and clarifies that each edit targets exactly one entity id + one path. This goes well beyond the schema's terse 'Property path in dot notation.'

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?

Opens with a specific verb+resource pair — 'Set or unset properties on existing entities by dot-notation path' — and then enumerates the exact valid path space (top-level: name, enabled, position, rotation, scale, tags; component: components.<type>.<prop>). The scope is crisp: this tool mutates properties on entities that already exist, which visibly separates it from create_entities, add_components/remove_components, and modify_scene_settings.

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 an explicit 'When NOT to use' section naming three alternatives with the exact condition that routes to each: create_entities for creation, add_components/remove_components for component lifecycle, and modify_scene_settings for scene-wide changes. It also gives positive routing guidance ('add it with add_components first') for the component-prerequisite case. Nothing is left to inference.

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