Skip to main content
Glama
ttiimmaacc

mcp-for-clo3d

by ttiimmaacc

add_hem

Adds a turned-back hem strip to a straight pattern edge in CLO3D, producing doubled fabric at the finished edge and a new hem line.

Instructions

Hem a straight edge: adds the turned-back layer as a strip covering the hem area on the reverse side, sewn along the edge and along a new hem line (cloth cannot be folded this way: a fold angle only bends it about 20 degrees, even at full strength). Gives the doubled fabric at the edge. The pattern's edge is the finished edge, so draw pieces at their finished size.

Args: pattern_index: Piece to hem. line_index: The straight outline line to hem (from get_pattern_geometry / view_patterns). width: Finished hem width in mm. layer: Layer for the hem strip: -1 = the -z side (towards the back camera), 1 = the +z side. Use the side opposite the garment's face. Where hems cross (a bottom hem and the side hems), put the later ones one layer further out (e.g. -2), like the real corner; on the same layer the overlapping strips crumple. fabric_index: Fabric for the strip (default: the piece's fabric). place_flat: Place the strip Flat, like a piece laid out without an avatar; set False and place it yourself for pieces on an avatar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerNo
widthYes
line_indexYes
place_flatNo
fabric_indexNo
pattern_indexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does most of it well: it discloses that geometry is added on the reverse side, that the cloth cannot be folded (only ~20 degrees), and that overlapping strips on the same layer crumple. It does not state permissions, undo/persistence behavior, or whether the operation is reversible, which keeps it short of a 5.

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?

Purpose is front-loaded and the Args block is ordered, so it is easy to scan. It is slightly bloated by parenthetical digressions (the fold-angle aside) that delay the argument list, but nearly every sentence carries usable information.

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?

For a six-parameter mutation tool with no annotations and no output schema, the description covers what is produced ('the doubled fabric at the edge') and how placement works, which is sufficient to call it correctly. It stops short of covering failure modes or undo/persistence, a minor gap given the richness elsewhere.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully compensate, and it does: it documents all six parameters, including units for width (mm), the source of line_index (get_pattern_geometry / view_patterns), the default for fabric_index, and the default meaning of place_flat. The layer parameter is explained in unusual depth, including -1/1 axis meaning and the -2 convention for crossing hems.

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 precise verb+resource ('Hem a straight edge') and then explains the mechanism: a turned-back strip sewn along the edge and a new hem line, producing doubled fabric at the edge. This is specific enough to separate it from neighboring construction tools like add_applique or make_rod_pocket without opening any schema.

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 implies the use case (hemming a straight outline line) and gives a conditional rule for place_flat ('set False and place it yourself for pieces on an avatar'), but it never names an alternative tool or states explicitly when this should be chosen over them. Usage context is present but inferred 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