Skip to main content
Glama

match_size

Scales a target layer so its rendered size matches a source layer in After Effects, correcting mismatched dimensions in one step.

Instructions

Scale target so its rendered size matches source's rendered size.

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

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
sourceYesLayer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing.
targetYesLayer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It hints that the calculation is based on rendered size rather than raw scale, but does not say whether it rewrites the scale property, creates keyframes, how it handles differing aspect ratios or existing keyframes/expressions, or whether the change is reversible.

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?

A single front-loaded sentence with the action first and the matching criterion second. No filler or redundant restatement of the tool name.

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?

A mutation tool with four parameters and no annotations or output schema needs more than one sentence to be fully self-sufficient. Parameter addressing is well covered by the schema, but the lack of any statement about side effects on keyframes or the resulting state leaves a meaningful gap.

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%, and the per-parameter descriptions already cover layer addressing forms, comp defaulting, and instance targeting. The description only names `source` and `target`, adding no meaning beyond the schema, so the 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?

States a specific verb and resource pairing ("Scale `target`") plus the exact criterion (matching `source`'s rendered size), which makes it clearly distinct from the positional sibling match_position. It stops short of explicitly naming or contrasting any alternative tool.

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 intent is implied by the name and the one-line description, but there is no explicit statement of when to use this versus match_position, align_layers, or manually setting scale. No prerequisites or exclusions are given.

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