Skip to main content
Glama

link_properties

Sets a destination property's expression to reference a source property, auto-deriving standard transform and effect links and returning expression errors inline.

Instructions

One-call expression link: set the DEST property's expression to reference the SOURCE property. The source accessor is auto-derived for the standard transforms (position/scale/rotation/opacity/anchorPoint/orientation/x|yRotation) and for DIRECT effect params (effect("Effect")("Param")). For anything not auto-derivable (masks, nested shape/effect params) pass expressionTemplate explicitly — the handler will error rather than emit a link that silently fails. The result is force-evaluated and its expressionError returned inline. Returns { destLayer, destProp, expression, expressionError, enabled, derived }.

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": {
      "source": "<source>",
      "dest": "<dest>"
    },
    "name": "link_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
destYes
sourceYes
destCompNoComp (name or { id: N }) for the dest layer if different from the source comp. Note: an expression can only reference layers within the dest's own comp, so a cross-comp link will report an expressionError.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.
expressionTemplateNoOverride the auto-derived link with an explicit expression string. Required when the source accessor can't be auto-derived (masks, deeply-nested params).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does considerable work: it documents auto-derivation scope, that the handler errors instead of emitting a broken link, force-evaluation of the result, inline expressionError reporting, and the returned fields. It omits that writing the dest expression overwrites any pre-existing expression and says nothing about permissions or side effects on undo history.

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?

Four tight sentences, front-loaded with the core action, then derivation rules, then the failure mode, then the return shape. No filler, and the fallback path is stated before the response contract.

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

Completeness5/5

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

For a six-parameter, nested-object tool with no output schema, the description covers the action, derivation limits, failure semantics, and return keys. The only meaningful gap is that overwriting an existing destination expression is not disclosed.

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 67%, and the description fills the most important gaps: it explains which source properties can be auto-derived (transform aliases, direct effect params) and exactly when expressionTemplate becomes mandatory. The destComp cross-comp restriction is repeated from the schema but the auto-derivation rules for source/dest props add meaning the schema does not.

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 opening clause states a specific verb, resource and direction: 'set the DEST property's expression to reference the SOURCE property.' It is unambiguous and clearly a property-linking operation, distinguishable from keyframe or preset siblings by the source/dest accessor framing.

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?

It gives one explicit conditional: pass expressionTemplate for anything not auto-derivable (masks, nested shape/effect params), with the consequence (handler errors rather than silently failing). However, it never says when to prefer this over sibling tools such as apply_expression_preset or check_expression_errors, and offers no guidance on when a manual expression is the wrong approach.

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