Skip to main content
Glama

Set a template clip parameter

set_mogrt_parameter
Idempotent

Set a single field of an After Effects Motion Graphics Template clip in Premiere Pro by parameter name or index, with typed values for sliders, checkboxes, colors, points, and text.

Instructions

Set one field of an After Effects Motion Graphics Template clip by name or index (see list_mogrt_parameters). value: a number (sliders), true/false (checkboxes), [r, g, b] 0-255 or "#rrggbb" (colours), [x, y] (points) or a string. A value of the wrong form fails with BAD_ARGS. For a text field a plain string changes only the text and keeps font and style (as set_mogrt_text); raw=true writes the string as the field's whole JSON document. Returns before and after, read back from Premiere. Graphics made in Premiere Pro fail with UNSUPPORTED (their fields are not scriptable).

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": {
      "value": "<value>"
    },
    "name": "set_mogrt_parameter"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoWrite a string value exactly as given, even to a text field (its JSON document). Default false.
valueYesThe new value (see the description for the form each parameter type takes).
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.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, idempotent=true, destructive=false), it discloses error semantics (BAD_ARGS on a wrongly-typed value, UNSUPPORTED for Premiere-authored graphics) and states the tool returns before and after values read back from Premiere. That is real behavioural context — failure modes and response shape — that the structured fields do not carry.

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?

Purpose is front-loaded in the first clause and every subsequent sentence carries distinct information (value forms, failure modes, text-field nuance, unsupported case). It is a dense single block with heavy parenthetical nesting, which costs some scannability, but nothing is redundant.

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?

For a 10-parameter mutation tool with no output schema, the description covers identification strategy (name vs index, with the pointer to list_mogrt_parameters), value typing, error outcomes, and the return payload. The only assumption left is which sequencing/identification parameters to prefer, and the schema itself already marks clip_id as preferred.

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 description coverage is already 100%, so the baseline is 3; the description earns an extra point by mapping value forms to parameter types — number for sliders, boolean for checkboxes, [r,g,b] 0-255 or "#rrggbb" for colours, [x,y] for points — which the schema's bare anyOf cannot express. It also clarifies that raw=true writes the string as the field's entire JSON document, adding intent beyond the one-line schema note.

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?

"Set one field of an After Effects Motion Graphics Template clip by name or index" gives a specific verb, resource, and scope, and immediately cross-references list_mogrt_parameters for discovery. It further distinguishes itself from set_mogrt_text by explaining that a plain string write preserves font and style, so an agent can pick between the two without opening either schema.

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

Usage Guidelines5/5

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

The description routes the agent: use list_mogrt_parameters to discover fields, use this tool to write one field, use raw=true only when the whole JSON document is intended, and expect UNSUPPORTED for templates authored in Premiere Pro (their fields are not scriptable). It also names the sibling behaviour it overlaps with (set_mogrt_text), which is exactly the disambiguation an agent needs.

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