Skip to main content
Glama

Create control layer

create_control_layer

Create a Controls null layer with slider, angle, checkbox, color, point, or dropdown expression controls, then link layer properties to them using generated expressions for centralized animation control.

Instructions

Create (or reuse) a null named 'Controls' holding Expression Controls (slider, angle, checkbox, color, point, point3d, layer, dropdown), set their values, and optionally link target properties to them with generated expressions (thisComp.layer("Controls").effect("")(1)). Link modes: replace (value = control; a 1D control fills every dimension, e.g. slider -> uniform Scale), add (value + control), multiply (value * control), toggle (checkbox: value or 0), or a custom 'expression' where {ctrl} is replaced by the control reference. Existing controls with the same name are updated, not duplicated. (To add controls to an arbitrary layer without a null, use the effects module.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_control_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
nameNoControl layer name (default 'Controls'). An existing layer with this name is reused.
labelNoLabel color index for a newly created null.
linksNoProperties to drive from the controls via expressions.
reuseNoReuse an existing layer with that name (default true); false always creates a new null.
controlsNoControls to add (or update) on the layer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, non-destructive, closed-world write, so the description carries real weight and delivers: idempotent update-in-place rather than duplication, the generate-expression template with {ctrl} substitution, the dimension-broadcast rule (a 1D control fills every dimension, e.g. slider -> uniform Scale), and the toggle's value-or-0 behavior. That is substantive behavior beyond the annotation hints.

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?

Dense but front-loaded: the core action comes first, the reuse/update rule next, then link modes, then the alternative-path note in parentheses. It is a long single paragraph with parenthetical asides, which is acceptable for a complex tool but could be split into short bullet points for scanability.

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 6-parameter, nested links/controls tool with no output schema, the description covers creation, reuse, value semantics, and expression generation. It leaves out what the call returns (e.g., layer and created control names) and any failure behavior for unresolvable property paths, which prevents a 5.

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

Parameters4/5

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

Schema coverage is 100% and the schema already documents each field well, so the baseline is 3; the description goes above it by explaining how link modes actually affect the driven property, how custom expressions interpolate {ctrl}, and what reuse does. It does not restate the control-layer name/label parameters, which is fine since the schema covers them.

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?

Opens with a specific verb+resource: create (or reuse) a null named 'Controls' holding Expression Controls, then set values and generate links. It enumerates the control kinds and the expression form, so the agent knows exactly what the tool produces and can distinguish it from create_null or create_expression_controls.

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

Usage Guidelines5/5

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

Provides explicit when-to-use routing: 'To add controls to an arbitrary layer without a null, use the effects module', plus the reuse rule ('Existing controls with the same name are updated, not duplicated') and per-link mode semantics (replace/add/multiply/toggle/custom expression). The only minor gap is that no sibling tool is named directly, but the alternative path is described.

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