Skip to main content
Glama

Create expression controls

create_expression_controls

Add rig-ready expression controls such as sliders, angles, colors, and dropdowns to an After Effects layer, returning each control with a ready-to-use expression reference.

Instructions

Add expression control effects (Slider, Angle, Checkbox, Color, Point, 3D Point, Layer, Dropdown Menu) to a layer - often a null used as a rig controller - with names and initial values. Returns each control and a ready expression reference, e.g. thisComp.layer("Ctrl").effect("Speed")(1).

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

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.
controlsYesControls to add, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds value by stating that named controls with initial values are added and that a ready-to-paste expression reference is returned (important since there is no output schema). It does not say what happens on duplicate control names or whether the addition is undoable, which are the remaining behavioral unknowns for a mutation.

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 the type list, ending with the return contract. Slightly dense with the parenthetical rig-controller aside, but no filler sentences.

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 3-parameter mutation with no output schema, the description covers what is created, the accepted types, and the shape of the return (control references plus expression strings). Duplicate-name behavior is the main omission, but an agent could call this correctly from what is given.

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 the schema already explains comp, layer and the controls array including per-type value formats. The description only restates the control types and 'names and initial values' at a high level, adding no syntax beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb (Add) plus resource (expression control effects) with the full set of control types enumerated, and the typical rig-controller use case called out. It is clear what the tool produces, though it never names a sibling (e.g. create_control_layer or create_null) to contrast with.

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 phrase 'often a null used as a rig controller' implies the typical setup context, which is a useful usage hint. However there is no explicit when-to-use/when-not guidance and no named alternative for cases such as creating the controller layer itself or modifying an existing effect.

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