Skip to main content
Glama

localize-comp

Create a localized duplicate of an After Effects composition by replacing specified text layers with translated strings, preserving all animations, effects, and precomposition structures. Supports Arabic/RTL auto-detection.

Instructions

Create a localized duplicate of a composition: swap in translated text for one or more text layers, auto-detecting Arabic and applying right-to-left direction/alignment (same logic as create-text-layer). Every other layer, effect, and animation is preserved unchanged because the whole composition is duplicated first. Text layers nested inside precompositions are reachable too via path: every precomposition on the path is safely duplicated the first time it's encountered (and reused if referenced again from another path), so the original precomps are never modified. Translation itself is the caller's job; pass the already-translated strings in translations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
compNameNoSource composition name (or the active comp if omitted).
compIndexNo1-based index among compositions, if compName is omitted.
newCompNameNoName for the new localized composition (default: '<source name> (localized)').
translationsYesOne entry per text layer to localize, each targeting a layer by layerIndex/layerName (top level) or by path (nested inside precompositions).
Behavior5/5

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

With no annotations, the description fully discloses key behaviors: duplication preserves originals, nested precomps are safely duplicated, Arabic detection and RTL alignment, and non-text layers unchanged. This meets the full burden.

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?

The description is a single, well-structured paragraph of four sentences. Each sentence serves a purpose: core action, preservation of other content, nested precomp handling, and caller responsibility. No redundancy or filler.

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?

The description covers input, behavior, nesting, and caller duty. However, it does not explicitly state that the duplicated composition appears in the project (implied by 'create'), nor mention error conditions for missing layers or invalid paths. For a tool with no output schema and moderate complexity, this is very good but slightly incomplete.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant context: explains path resolution, safe duplication, default behaviors (active comp if omitted, name defaults), and interaction between layerName/layerIndex vs path. This enriches parameter understanding beyond the schema.

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 clearly states the tool creates a localized duplicate of a composition by swapping translated text, preserving other layers/effects. It distinguishes from siblings like create-text-layer by specifying the duplication aspect and nested path handling.

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

Usage Guidelines4/5

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

The description explains the caller's responsibility for translation and mentions auto-detection logic, but lacks explicit comparison to sibling tools for when to use alternatives. The guidance is clear but not comprehensive in differentiating usage scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/a-y-ibrahim/after-effects-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server