Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

delete_assets

DestructiveIdempotent

Permanently remove assets from a project by their IDs, deleting them and clearing any entity references. Use to clean up unused assets; to detach an asset without deleting it, modify entities instead.

Instructions

Permanently delete assets by id. This is destructive; entities referencing the deleted assets will lose those references. Returns { deleted: }. When NOT to use: to remove an asset reference from an entity without deleting the asset itself (use modify_entities).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYes
rejectReferencedNoFail before deletion if any asset is referenced

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 / ids / description
      Removed value: -"The asset IDs of the assets to delete"
    • 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 / rejectReferenced
      Added value: +{
      +  "description": "Fail before deletion if any asset is referenced",
      +  "type": "boolean"
      +}
  2. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes beyond the destructiveHint=true annotation by explaining the concrete consequence: entities referencing deleted assets will lose those references. Also discloses the return shape ({ deleted: <count> }). No contradiction with annotations; idempotentHint=true is compatible with a delete operation.

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?

Four short sentences, each contributing a distinct piece of information: action, consequence, return value, and when not to use. Front-loaded with the core purpose and no filler.

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 two-parameter destructive tool with no output schema, the description covers the essential call semantics: what it does, what side effects occur, what it returns, and the primary alternative. Combined with annotations and schema descriptions, nothing critical is missing.

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 50%, so the description does carry some responsibility for parameter meaning. It references ids generically ('by id') but does not explain rejectReferenced. However, the schema itself provides clear descriptions for both parameters ('Asset ID' and 'Fail before deletion if any asset is referenced'), so the gap is modest. A 3 reflects that the description adds little beyond the schema but does not mislead.

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 a specific verb and resource ('Permanently delete assets by id'), and the destructive nature is explicit. Clearly distinguishes from sibling asset operations like modify_assets, move_assets, and duplicate_assets.

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?

Explicitly provides a when-not-to-use scenario and names the alternative tool (modify_entities for removing references without deleting the asset). This leaves no ambiguity about tool selection in a key edge case.

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