Skip to main content
Glama

Resize / scale composition

resize_comp

Scale an After Effects composition and its layers, then update comp dimensions and camera settings; specify a factor or target width/height to resize around the top-left.

Instructions

Scale a composition and everything in it (like the classic 'Scale Composition' script): unparented layers are scaled around the top-left via a temporary 3D null, the comp size changes, and camera zoom/focus distance/aperture are scaled. Give a 'scale' factor, or width and/or height (one side keeps the aspect ratio; both sides may scale non-uniformly). Pixel-based effect values are not scaled.

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": "resize_comp"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
scaleNoUniform factor, e.g. 0.5 (half) or 2 (double).
widthNoNew width in px.
heightNoNew height in px.
scaleCamerasNoScale camera zoom/focus/aperture (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare this is a write with no destruction; the description adds genuinely useful behavioral detail beyond them - unparented layers are scaled around the top-left via a temporary 3D null, comp size changes, camera zoom/focus/aperture are scaled, and pixel-based effect values are deliberately not scaled. It still omits what happens to parented layers and whether the operation is undoable, which keeps it from a 5.

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 core action and mechanics, with the input-mode rules and the caveat about effect values folded in efficiently. The parenthetical mechanics clause is dense but not wasteful.

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 mutating comp-level transform with no output schema and full schema coverage, the definition covers mechanics, input modes, and one important non-obvious exclusion. Minor gaps remain around return value and layer-parenting edge cases, but nothing essential for correct invocation is missing.

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%, so the baseline is 3, but the description adds semantics the schema does not carry: the mutual exclusivity of 'scale' versus width/height, the aspect-ratio preservation when only one side is given, and the possibility of non-uniform scaling when both are given.

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 description opens with a specific verb and resource ('Scale a composition and everything in it') and immediately characterizes the transformation, which distinguishes it from neighbors like crop_comp_to_region or set_comp_settings that also act on a comp.

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 explains how to drive the tool (either a 'scale' factor or width/height, with explicit behavior for one-sided and two-sided input), but gives no when-to-use/when-not guidance relative to alternatives such as cropping or changing comp settings, nor any prerequisites about targeting the active comp.

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