Skip to main content
Glama

create_texture_2d_from_data

Destructive

Creates a saved UTexture2D asset filled with a solid RGBA color, without an external image file. Specify size, color, and content path to generate or rebuild the texture deterministically.

Instructions

Creates a persisted UTexture2D filled with a solid color (no external file). Allocates the editor source (FTextureSource::Init, BGRA8), fills every pixel with fill_color, calls UpdateResource, registers the asset and saves it to disk. Re-running deletes and rebuilds the asset deterministically. fill_color is an [R, G, B, A] array of 0-255 byte values (default = opaque white).

Returns: { texture_name: string, asset_path: string, created: bool, saved: bool, width: int, height: int, format: string, has_source: bool, fill_color: [int, int, int, int], save_error?: string }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the texture asset to create
widthNoOptional pixel width; clamped 1..8192; defaults to 64
heightNoOptional pixel height; clamped 1..8192; defaults to 64
fill_colorNoOptional [R, G, B, A] (0-255 each); defaults to opaque white
package_pathNoContent folder; defaults to /Game/Textures

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true/idempotentHint=false, but the description adds real context: it allocates the editor source, fills every pixel, calls UpdateResource, registers and saves to disk, and explains that re-running deletes and rebuilds the asset (clarifying what gets destroyed). That exceeds the annotation payload usefully, though permissions/errors are not covered.

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 the purpose and effect, then the color format, then the return shape. It is efficient, though the internal API names (FTextureSource::Init, BGRA8, UpdateResource) are somewhat implementation-detail heavy for selection purposes.

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?

No output schema exists, so the inline Returns block meaningfully fills that gap (including the optional save_error field). Combined with the mutation behavior and asset-persistence disclosure, an agent has almost everything needed; only explicit prerequisites/alternatives are absent.

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 width/height/fill_color/package_path are already documented in the schema. The description restates the fill_color format and default but adds no syntax or constraint beyond what the schema provides, so the 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 ('Creates') and a precisely scoped resource ('persisted UTexture2D filled with a solid color (no external file)'). The 'no external file' qualifier distinguishes it from siblings like import_texture_file and create_static_texture_from_render_target, so an agent can route 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 Guidelines3/5

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

The 'no external file' phrase and the note that re-running deletes and rebuilds give implied context, but no sibling is named and there is no explicit 'use X when Y' guidance. Usage is inferable rather than stated.

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