Skip to main content
Glama

Set the text of a template clip

set_mogrt_text
Idempotent

Replace text in an After Effects Motion Graphics Template clip while preserving font, size, and style; target a field by name or index and read back the updated text.

Instructions

Change the text of an After Effects Motion Graphics Template clip, keeping its font, size and style: the field's JSON document is read, only its textEditValue is replaced, and it is written back. By default the first text field changes; pass param_name or param_index for another (e.g. "Subtitle"). Use "\n" for a line break. Returns index, name, previous_text and text (read back). Graphics made in Premiere Pro (e.g. the bundled Basic Title) fail with UNSUPPORTED: Premiere does not expose their text to scripting.

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": {
      "text": "<text>"
    },
    "name": "set_mogrt_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe new text. Use "\n" for a line break.
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
param_nameNoParameter name as listed by list_mogrt_parameters (case-insensitive). Give this or param_index.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
param_indexNo0-based parameter index from list_mogrt_parameters; used when param_name is not given.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description spells out the exact mutation scope: only textEditValue is replaced and font/size/style survive. It also discloses the return payload (index, name, previous_text, text) and a concrete error mode (UNSUPPORTED for Premiere-made templates), which is substantially more than the structured fields supply.

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?

Three tightly packed sentences, front-loaded with the verb and resource, then mechanism, then parameter defaults, then return values and the failure mode. No sentence is filler; each adds information the agent would otherwise have to discover by trial.

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?

With no output schema, the description steps in to describe the returned fields and even the read-back confirmation of the new text. For a 9-parameter mutation tool it also covers the default target, the id-vs-index preference implied by the schema, and the known unsupported case, leaving nothing critical unexplained.

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 would be 3, but the description adds real meaning the schema lacks: the default target is the first text field, and param_name takes precedence with param_index as fallback. It also restates the "\n" line-break convention, which is already in the schema, so the gain is modest but genuine.

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?

The description states a specific verb and resource: change the text of an After Effects Motion Graphics Template clip, while preserving font, size and style. It even explains the mechanism (read the field's JSON, replace only textEditValue, write back). It does not distinguish itself from the near-identically named sibling replace_mogrt_text, so an agent still has to guess which of the two to pick.

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 useful in-tool routing (default first text field; pass param_name or param_index for another, e.g. "Subtitle") and a clear failure case for Premiere-authored graphics. It never says when to use this instead of replace_mogrt_text or set_mogrt_parameter, which is the main ambiguity from the sibling catalog, so usage context is only implied.

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