Skip to main content
Glama

formatTextLayer

Modify an existing After Effects text layer by setting content, font, size, colors, stroke, tracking, leading, justification, and caps options in one call.

Instructions

Format an existing text layer: modify text content, font family/PostScript name, font size, fill/stroke colors, stroke width, tracking, leading, justification, allCaps/smallCaps

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fontNoFont PostScript name (e.g. "ArialMT", "MicrosoftYaHei", "PingFangSC-Regular")
textNoNew text content
allCapsNoAll caps formatting
leadingNoLine spacing / leading in points
compNameNoComposition name (defaults to active comp)
fontSizeNoFont size in pixels
trackingNoTracking / character spacing (e.g. 50, -20)
applyFillNoEnable/disable fill color
fillColorNoRGB fill color [0-1, 0-1, 0-1]
layerNameNoLayer name
smallCapsNoSmall caps formatting
layerIndexNoLayer index (1-based)
applyStrokeNoEnable/disable stroke
strokeColorNoRGB stroke color [0-1, 0-1, 0-1]
strokeWidthNoStroke width in pixels
justificationNoParagraph justification (left, right, center, full)
strokeOverFillNoWhether stroke renders over fill

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It indicates a mutation ('modify') but does not disclose whether changes are reversible, what permissions are needed, how omitted parameters behave, or what happens when the target layer is missing.

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?

The description is a single front-loaded sentence that begins with the core action and then lists supported attributes. It is dense but avoids filler; the list is long yet every item corresponds to an actual capability.

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

Completeness2/5

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

For a 17-parameter mutation tool with no annotations and no output schema, the description is incomplete. It covers the parameter surface broadly but omits usage context, side effects, prerequisites, and return behavior that an agent would need to invoke it safely and correctly.

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 documents all 17 parameters in detail. The description lists many of the modifiable fields but adds no syntax, format, or behavioral meaning beyond what the schema provides, making the baseline score of 3 appropriate.

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 gives a specific verb and resource: 'Format an existing text layer,' and then enumerates the exact text attributes that can be modified. The word 'existing' implicitly distinguishes it from createTextLayer, and the text-specific scope separates it from broader layer-property tools.

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

Usage Guidelines2/5

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

The description states what the tool does but gives no explicit guidance on when to use it versus alternatives such as createTextLayer, aiModifySelectedLayer, or setLayerProperties. There are no exclusions, prerequisites, or alternative-routing instructions.

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