Skip to main content
Glama
ttiimmaacc

mcp-for-clo3d

by ttiimmaacc

apply_plaid

Generate a plaid (tartan) texture from a stripe sequence and apply it to a fabric, with optional twill mixing and back color for double-faced cloth.

Instructions

Make a plaid (tartan) texture from its stripe sequence and put it on a fabric. The same stripes run both ways; where two colours cross they mix in a twill, as in woven checks.

Args: fabric_index: Fabric to texture. sett: One repeat as [[colour, width_mm], ...], e.g. a grey/black workwear check: [["#1b1b1d", 45], ["#5d5d60", 6], ["#1b1b1d", 6], ["#5d5d60", 35], ["#8e8e90", 3], ["#5d5d60", 35]]. The repeat is the sum of the widths. px_per_mm: Image resolution. twill: Mix crossing colours along diagonals (woven look) instead of averaging them. back_color: For double-faced cloth, a plain back in this colour [r, g, b]. The back is separated before the plaid goes on: separated afterwards, it copies the plaid (tested in CLO 2025.2.236).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
settYes
twillNo
px_per_mmNo
back_colorNo
fabric_indexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.1

TDQS

A4/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 burden and does disclose meaningful behavior: twill causes crossing colours to mix along diagonals instead of averaging, and back_color's separation order changes the result (a version-specific quirk). It stops short of stating whether the fabric's existing texture is overwritten or whether the operation is reversible.

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 one-sentence purpose followed by a structured Args block; every line carries information. Slightly long but no wasted sentences, and the structured layout aids scanning.

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 5-param, no-annotation, no-output-schema mutation tool, the description is nearly self-sufficient on inputs and behaviour. It omits only the effect on any pre-existing fabric texture and the return/confirmation behaviour.

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 compensate, and it does: all five params are explained, including a concrete worked example of a 'sett' repeat, the rule that the repeat equals the sum of the widths, and the double-faced meaning of back_color. This adds substantial meaning beyond the bare schema types.

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+resource: generating a plaid/tartan texture from a stripe sequence and applying it to a fabric. It is clearly distinguishable from generic siblings like set_fabric_texture, set_fabric_color, and apply_fabric_json because it names the specific plaid construction (crossing stripes mixed in a twill).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description never says when to choose this over alternatives such as set_fabric_texture or apply_fabric_json, nor does it state prerequisites (e.g., a fabric must already exist). Usage is only implied by the verb 'put it on a fabric'.

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