Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

remove_components

DestructiveIdempotent

Remove one or more components from an entity by component name and get the updated entity summary. Deletes specified components while keeping the entity intact.

Instructions

Remove one or more components from an entity by component name. Returns the updated entity summary. When NOT to use: to delete the whole entity (use delete_entities) or to just disable a component (set components..enabled=false via modify_entities).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesEntity ID
componentsYes

Schema Changelog

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

  1. Changed5 schema fields changedv0.7.0
    • removedInput schema / properties / components / description
      Removed value: -"Array of component names to remove from the entity."
    • addedInput schema / properties / components / items / description
      Added value: +"Editor component type"
    • removedInput schema / properties / components / items / enum
      Removed value: -[
      -  "anim",
      -  "animation",
      -  "audiolistener",
      -  "button",
      -  "camera",
      -  "collision",
      -  "element",
      -  "layoutchild",
      -  "layoutgroup",
      -  "light",
      -  "model",
      -  "particlesystem",
      -  "render",
      -  "rigidbody",
      -  "screen",
      -  "script",
      -  "scrollbar",
      -  "scrollview",
      -  "sound",
      -  "sprite"
      -]
    • addedInput schema / properties / components / items / minLength
      Added value: +1
    • changedInput schema / properties / id / description
      Previous value: -"An entity ID."New value: +"Entity ID"
  2. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already carry destructiveHint=true, readOnlyHint=false, and idempotentHint=true, so the destructive safety profile is covered. The description adds value beyond that by disclosing the return behavior ('Returns the updated entity summary') and implicitly clarifying that removal physically deletes the component rather than merely toggling it, which is a meaningful behavioral distinction. No contradiction with 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?

Three sentences, zero filler: action first, then return value, then exclusionary routing. Every sentence earns its place, and the most decision-relevant information (what it removes and when not to use it) is front-loaded.

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 simple 2-param, no-output-schema, idempotent-destructive tool, the description covers the action, parameter semantics, return value, and sibling routing. The only real gap is unstated behavior when a named component doesn't exist on the entity (error vs no-op), which an agent might want to know, but this is minor given idempotentHint=true and the overall simplicity.

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 50%: 'id' has a description but the 'components' property itself does not (only its items get 'Editor component type'). The description's 'by component name' fills this gap by clarifying that the array entries are component names, resolving the ambiguity of 'type' vs 'name' in the schema. It doesn't cover edge cases like nonexistent component names, but for a 2-param tool it compensates 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?

The description states a specific verb ('Remove'), resource ('components from an entity'), and method ('by component name'), immediately distinguishing it from delete_entities and modify_entities. The return value is also disclosed ('Returns the updated entity summary'). This is exactly what an agent needs to tell this tool apart from its many siblings.

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 includes an explicit 'When NOT to use' section naming two alternatives (delete_entities for whole-entity deletion, modify_entities with components.<name>.enabled=false for disabling) with the precise conditions that select them. This is textbook routing guidance that leaves nothing 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