Skip to main content
Glama

vertex_group_operation

Clean up or reshape vertex group weights by normalizing, inverting, cleaning, smoothing, leveling, limiting, mirroring, or quantizing them for rigging and game-engine workflows.

Instructions

Clean up or reshape the weights in a vertex group.

Args: object_name: Mesh object. group_name: Vertex group to work on. operation: One of: NORMALIZE (scale so the highest weight is 1), NORMALIZE_ALL (make each vertex's weights across all groups sum to 1, as armatures expect), INVERT (weight becomes 1 - weight), CLEAN (drop weights at or below threshold), SMOOTH (blur weights with neighbours: factor, repeat), LEVELS (weight * gain + offset), LIMIT_TOTAL (keep at most max_groups groups per vertex, as game engines need), MIRROR (mirror the weights across X), QUANTIZE (snap weights to steps levels). factor: SMOOTH strength, 0.0 to 1.0. repeat: SMOOTH passes, 1 to 200. threshold: CLEAN cut-off, 0.0 to 1.0. offset: LEVELS offset, -1.0 to 1.0. gain: LEVELS gain, 0.0 to 10.0. max_groups: LIMIT_TOTAL groups per vertex, 1 to 32. steps: QUANTIZE levels, 1 to 1000.

Returns: Dict with the group's vertex count and weight range afterwards.

Input Schema

NameRequiredDescriptionDefault
gainNo
stepsNo
factorNo
offsetNo
repeatNo
operationYes
thresholdNo
group_nameYes
max_groupsNo
object_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It explains each operation and the return value, but it does not state whether changes are in-place, reversible, permission-sensitive, or which operations affect other vertex groups beyond the brief NORMALIZE_ALL note.

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?

The description is front-loaded with a clear one-sentence summary, then structured into Args and Returns sections. Its length is justified by nine operations and ten parameters, and no sentence is wasted.

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?

Given 10 parameters, 9 operation modes, no annotations, and an output schema, the description is largely complete for invocation. It could be stronger by clarifying which parameters apply only to specific operations and by noting side effects or undo behavior for these weight mutations.

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 document parameter meaning. It does so for all 10 parameters, including operation-specific semantics and valid ranges for factor, repeat, threshold, offset, gain, max_groups, and steps.

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?

The description states a specific verb phrase, 'Clean up or reshape the weights,' and a specific resource, 'in a vertex group.' The operation enum and explanations make the scope unambiguous and clearly separate it from sibling tools like assign_vertex_group, list_vertex_groups, and remove_vertex_group.

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 operation list implies when certain modes are useful, such as NORMALIZE_ALL for armatures and LIMIT_TOTAL for game engines. However, the description does not explicitly say when to use this tool versus alternatives, nor does it state prerequisites or exclusions.

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