Skip to main content
Glama

List masks

list_masks
Read-only

List all masks on a layer with index, name, mode, opacity, feather, and path details to inspect or debug After Effects mask setups. Set detail=true to include path vertices.

Instructions

List a layer's masks: index, name, mode, inverted, feather, opacity, expansion, vertex count, closed, locked, color, motion blur. detail=true adds path vertices.

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>"
    },
    "name": "list_masks"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
detailNoInclude mask path vertices/tangents.

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 declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds real value by disclosing the returned field set and the cost of detail=true (extra path vertex data), which matters for a tool with no output schema.

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?

Two sentences, front-loaded with the action and then the field list; the enumeration is dense but informative rather than padded, though a twelve-field inline list is on the heavy side.

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?

With no output schema, the description usefully stands in for one by naming returned fields, and annotations cover safety; gaps are minor (no note about empty results or layer-resolution failures).

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 coverage is 100%, so layer/comp/detail semantics are already documented in the schema; the description only restates that detail=true adds path vertices, adding little beyond the schema's own wording. Baseline 3 applies.

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 ('List a layer's masks') and enumerates exactly what a mask record contains, so the scope is unambiguous and it is clearly distinct from siblings like add_mask or list_shape_contents.

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 only usage signal is the detail=true hint for expanding output; there is no guidance on when to call this versus other inspection tools or on which layer-resolution form to prefer (though the schema covers the latter).

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