Skip to main content
Glama

Set mask properties

set_mask_properties

Change a mask's name, mode, inversion, feather, opacity, expansion, motion blur, color, lock, or RotoBezier; optionally keyframe feather, opacity, and expansion at a given time.

Instructions

Change properties of one mask (by index or name): rename, mode, inverted, feather, opacity, expansion, motion blur, feather falloff, color, locked, RotoBezier. With 'time', feather/opacity/expansion are keyframed at that time.

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": {
      "layer": "<layer>",
      "mask": "<mask>"
    },
    "name": "set_mask_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
maskYesMask: 1-based index or mask name (e.g. 'Mask 1').
modeNoMask mode.
timeNoKeyframe feather/opacity/expansion at this time.
colorNoMask outline color in the UI.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
lockedNoLock the mask.
featherNoMask feather px: number or [x,y].
newNameNoRename the mask.
opacityNoMask opacity 0-100.
invertedNoInvert the mask.
expansionNoMask expansion px (negative shrinks).
motionBlurNoMask motion blur.
rotoBezierNoUse RotoBezier for the path.
featherFalloffNoFeather falloff.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish this is a non-read-only, non-destructive, closed-world mutation, so the bar is lower. The description adds useful behavioral context by scoping the operation to exactly one mask and explaining that feather, opacity, and expansion become keyframed when 'time' is supplied, though it does not address failure modes or whether unspecified properties remain unchanged.

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?

Two compact sentences with the core action front-loaded and the property list efficiently packed. Every phrase carries information, and the keyframing caveat is clearly separated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers most property changes but omits any mention of the required 'layer' parameter and the optional 'comp' scope, which matter for a mutation tool with 15 parameters. With no output schema, the description could also say more about the result of the update, though the annotations and complete schema reduce the urgency.

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 all 15 parameters—including comp, layer, mask, mode, and featherFalloff—are already fully documented. The description names several editable fields but adds little syntax or meaning beyond the schema, which is the expected baseline when the schema does the heavy lifting.

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 ('Change properties of one mask') and enumerates the editable properties, making it clearly distinct from add_mask, delete_mask, and set_mask_path. An agent can identify the tool's job without opening the 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?

Implies usage for modifying an existing mask's properties, with the 'time' sentence clarifying keyframing behavior. However, it never states when to choose set_mask_path versus this tool, nor what happens if the mask name/index is invalid, leaving alternatives and exclusions to inference.

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