Skip to main content
Glama

Unwrap UVs

unwrap_uv
Destructive

Unwraps a mesh into a packed UV map before texturing or baking, using marked seams and reporting islands, overlaps, out-of-bounds faces, and texel density.

Instructions

Unwrap a mesh into a UV map; projections are packed. Returns: islands, area used, overlapping and out-of-bounds faces, texel density (px/m at 1024). WHEN TO CALL: before texturing or baking; unwrap needs seams (edit_mesh mark_seams).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "object": "<object>"
    },
    "name": "unwrap_uv"
  }
}

Input Schema

NameRequiredDescriptionDefault
marginNoBetween islands, to 0.1; lightmap to 0.01 (0.01)
methodNoDefault smart
objectYesName
uv_mapNoMade if missing (default active)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the safety profile is partly covered. The description adds useful behavior beyond that: the returned diagnostics (islands, area used, overlapping and out-of-bounds faces, texel density at 1024) and the seam prerequisite. However, it never says that existing UV data on the active uv_map is replaced, which is exactly the destructive consequence the annotation flags.

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?

Three tight clauses: operation, return values, when-to-call. Front-loaded with the verb and resource, and the WHEN TO CALL cue makes the prerequisite scannable. No wasted wording.

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, and the description compensates by enumerating what is returned, so an agent knows how to validate results. The remaining gap is the destructive overwrite of existing UVs and any note on cost/time for large meshes, which matters for a destructive unwrap.

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 margin, method, object, and uv_map semantics are already documented in the schema, including the lightmap margin convention. The description adds nothing about parameter meaning (method choice, uv_map creation behavior), so this sits at the baseline.

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 ('Unwrap a mesh into a UV map') plus the packing behavior, which is enough to separate it from mesh-editing siblings like edit_mesh or get_mesh. No ambiguity about the operation performed.

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?

Gives an explicit timing rule ('before texturing or baking') and names a prerequisite that recruits another tool ('unwrap needs seams (edit_mesh mark_seams)'). It stops short of stating when not to use it, but the method enum already covers projection variants, so little is left to inference.

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