Skip to main content
Glama

remove_data_layer_instance

DestructiveIdempotent

Deletes a data layer instance from a World Partition editor world, verifying removal by read-back. Returns an error on non-WP maps and reports if already deleted.

Instructions

Removes a data layer instance from the editor world's World Partition (inverse of create_data_layer_instance). Uses UDataLayerEditorSubsystem::DeleteDataLayer (void), verified by read-back: after delete GetDataLayerInstance(asset) must be null. Requires a World Partition world; on a non-WP (default) map this returns an honest error (no editor-world swap). Idempotent: already_deleted=true when no instance referenced the asset before the call.

Returns: { data_layer_asset_path: string, deleted: bool, already_deleted: bool, instance_name?: string, note?: string }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
data_layer_asset_pathYesFull /Game path to the UDataLayerAsset whose instance should be removed from the world.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond annotations: names the underlying subsystem call, describes read-back verification (GetDataLayerInstance must be null), clarifies the non-WP error behavior, and explains idempotency semantics (already_deleted=true when nothing referenced the asset). This adds substantial behavioral context on top of the destructiveHint/idempotentHint annotations.

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?

Front-loaded with purpose, then preconditions and behavior, then the return shape. Mostly tight, though the internal API name (UDataLayerEditorSubsystem::DeleteDataLayer) is slightly incidental detail that a caller doesn't strictly need.

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?

Even without an output schema, the description enumerates the return fields (data_layer_asset_path, deleted, already_deleted, instance_name, note), so an agent knows what it will get. For a single-parameter mutation tool, nothing needed to call it correctly 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 coverage is 100% and the single parameter is fully documented in the schema, so the description correctly relies on it. The description adds no new syntax or format detail about data_layer_asset_path, so baseline 3 applies.

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+resource ('Removes a data layer instance from the editor world's World Partition') and explicitly names its sibling inverse create_data_layer_instance. An agent can distinguish it from similar remove_* tools like remove_actor_from_data_layer_instance without opening schemas.

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

Usage Guidelines4/5

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

Clearly states the precondition that a World Partition world is required and that a non-WP map returns an error rather than swapping the editor world, which is real routing context. It does not enumerate alternatives or exclusion conditions beyond the WP constraint.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools