Skip to main content
Glama

repack_mesh_uvs

Destructive

Packs existing UV islands on a DynamicMeshActor's UV channel into standard UV space, optionally optimizing island rotation and reporting whether the UVs were repacked.

Instructions

Pack existing UV islands on a UV channel into standard UV space. A channel the mesh does not have, or an empty mesh, is an error checked before anything changes. A channel with no UVs set has no islands to pack: the call succeeds with repacked false and a note, leaving the mesh unchanged. Otherwise repacked is false, and the call fails, when the engine reports an error. No undo entry, nothing saved.

Returns: { actor_name, uv_channel, target_image_width, optimize_island_rotation, num_uv_islands, repacked, note? }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actor_nameYesDynamicMeshActor name (required)
uv_channelNoUV channel index (default 0)
target_image_widthNotarget image width in pixels (default 512)
optimize_island_rotationNowhether to optimize island rotation (default true)

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, readOnlyHint=false and idempotentHint=false, but the description adds genuinely new behavioral detail: 'No undo entry, nothing saved', the pre-flight error check before any change, and the semantics of the repacked flag on success vs engine error. These are real behavioral traits not derivable from the annotations and they are internally consistent with them.

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 action, followed by precondition and outcome cases, then a Returns line. Each sentence carries information, though the third and fourth sentences are dense and slightly hard to parse. Minimal waste overall.

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?

With no output schema, the description helpfully provides the return shape (actor_name, uv_channel, num_uv_islands, repacked, note, etc.) plus error and no-op conditions and the no-undo/no-save caveat. This is close to complete for an agent to call it correctly; only the routing-to-alternative case is thin.

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 actor_name, uv_channel, target_image_width and optimize_island_rotation. The description implies the channel concept but adds no syntax or format detail beyond what the schema provides, so the baseline of 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 ('Pack') and resource ('existing UV islands on a UV channel') and destination ('standard UV space'), which cleanly distinguishes it from siblings like generate_mesh_uvs, auto_generate_mesh_uvs, recompute_mesh_uvs, and the rotate/scale/translate_mesh_uvs family. 'Existing' makes clear it operates on islands already present rather than creating UVs.

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 description lays out preconditions clearly (channel must exist, mesh must not be empty, channel must have UVs set) and states the success/failure outcomes for each, which is useful context. However, it never names an alternative or says explicitly when to reach for this tool versus generating UVs first (e.g. generate_mesh_uvs). Usage is implied through the precondition narrative rather than routed.

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