Skip to main content
Glama

Create or resize the texture

texture_create
DestructiveIdempotent

Creates or resizes a project texture, keeping old pixels at the top-left and optionally updating the UV size.

Instructions

Creates the project texture, or resizes it (the canvas grows or shrinks and old pixels stay at the top-left). Also sets the project UV size unless set_uv_size is false.

Input Schema

NameRequiredDescriptionDefault
fillNo"#rrggbb", "#rrggbbaa", or "clear" / null for transparent
nameNoTexture name for a new texture, for example "sword.png".
widthNoDefault the project UV width.
heightNoDefault the width.
keep_pixelsNoKeep the old pixels when resizing. Default true.
set_uv_sizeNoAlso set the project UV size. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real behavioral context beyond them: resizing anchors old pixels at the top-left, and UV size is a side effect unless set_uv_size is false. It stops short of explaining overwrite semantics for an existing texture name, which is what makes the destructive hint material.

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?

Two front-loaded sentences with no filler; the create/resize duality comes first and the UV side effect second, with the pixel-anchoring detail earning its clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-optional-parameter mutation tool with no output schema, the description covers the main modes and side effects but leaves open whether an existing texture with the same name is replaced, what a caller gets back, and which parameters are required to create versus resize.

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 the schema already documents fill, name, width/height, keep_pixels and set_uv_size. The description only restates the set_uv_size toggle and the top-left anchoring, adding little parameter-level meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Creates the project texture, or resizes it') and includes the secondary effect on project UV size. This clearly separates it from texture_import (bring in external image) and texture_set_pixels/fill_rect (modify existing pixels), though no sibling is named explicitly.

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 two modes (create vs resize) are described, implying when each applies, but there is no explicit guidance on when to prefer this over texture_import or over setting pixels directly, and no mention of prerequisites such as whether the texture must already exist for the resize path.

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