Skip to main content
Glama

add_text_overlay

Add a text overlay to the video timeline. Use a presetId to auto-apply a preset style (cinematic-title, lower-third, subtitle, chapter-card, quote, social, breaking-news, credits-roll), or provide custom textConfig. The text field overrides the preset default text. Auto-creates an overlay track if none exist.

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": {
      "workspaceId": "<workspaceId>",
      "editId": "<editId>",
      "text": "<text>"
    },
    "name": "add_text_overlay"
  }
}

Input Schema

NameRequiredDescriptionDefault
exitNoExit animation
sizeNoNormalized overlay size; overrides width/height if provided
textYesThe text to display
colorNoText color as hex (e.g. #FFFFFF) or rgba (overrides preset)
enterNoEntrance animation
widthNoWidth (normalized 0–1 of canvas). Uses preset default if not specified.
borderNoOverlay item border styling
editIdYesThe edit ID
heightNoHeight (normalized 0–1 of canvas). Uses preset default if not specified.
shadowNoOverlay item drop shadow
opacityNoOverall opacity 0–1 (default 1)
trackIdNoOverlay track ID (auto-creates a track if not provided)
durationNoHow long to show the text (seconds, uses preset default if not specified)
fontSizeNoFont size in points (overrides preset)
positionNoNormalized center position; overrides positionX/positionY if provided
presetIdNoText preset ID (cinematic-title, lower-third, subtitle, chapter-card, quote, social, breaking-news, credits-roll). Provides default styling, animation, and position.
rotationNoRotation in degrees
fontStyleNoFont style (overrides preset)
keyframesNoTransform keyframes relative to item start
positionXNoHorizontal position (0 = left, 0.5 = center, 1 = right). Uses preset default if not specified.
positionYNoVertical position (0 = top, 0.5 = center, 1 = bottom). Uses preset default if not specified.
startTimeNoWhen to show the text overlay (seconds from edit start)
textAlignNoText alignment
fontFamilyNoFont family (overrides preset). Available: Inter, Outfit, Playfair Display, Bebas Neue, Roboto Mono
fontWeightNoFont weight as 100-900, normal, or bold (overrides preset)
lineHeightNoLine-height multiplier
lineStylesNoPer-line style overrides keyed by zero-based line index
textConfigNoFull TextEffectConfig override/extension
strokeColorNoText stroke/outline color
strokeWidthNoText stroke/outline width
workspaceIdYesThe workspace ID
borderRadiusNoOverlay item corner radius in 720p logical pixels
letterSpacingNoLetter spacing in points
textAnimationNoPer-character/word/line text animation
textShadowBlurNoText shadow blur radius
backgroundColorNoText background color
textShadowColorNoText shadow color
textShadowOffsetXNoText shadow horizontal offset
textShadowOffsetYNoText shadow vertical offset
backgroundPaddingXNoText background horizontal padding
backgroundPaddingYNoText background vertical padding
backgroundBorderRadiusNoText background corner radius

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed34 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / border / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "color": {
      -        "description": "Border color as hex or rgba",
      -        "type": "string"
      -      },
      -      "width": {
      -        "description": "Border width in 720p logical pixels",
      -        "minimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "color",
      -      "width"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "color": {
      +        "description": "Border color as hex or rgba",
      +        "type": "string"
      +      },
      +      "width": {
      +        "description": "Border width in 720p logical pixels",
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "color",
      +      "width"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / enter / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "damping": {
      -        "type": "number"
      -      },
      -      "direction": {
      -        "enum": [
      -          "up",
      -          "down",
      -          "left",
      -          "right"
      -        ],
      -        "type": "string"
      -      },
      -      "distance": {
      -        "type": "number"
      -      },
      -      "duration": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "fromOpacity": {
      -        "type": "number"
      -      },
      -      "fromScale": {
      -        "type": "number"
      -      },
      -      "stiffness": {
      -        "type": "number"
      -      },
      -      "type": {
      -        "enum": [
      -          "fade",
      -          "slide",
      -          "scale",
      -          "blur",
      -          "spring"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "duration"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "damping": {
      +        "type": "number"
      +      },
      +      "direction": {
      +        "enum": [
      +          "up",
      +          "down",
      +          "left",
      +          "right"
      +        ],
      +        "type": "string"
      +      },
      +      "distance": {
      +        "type": "number"
      +      },
      +      "duration": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "fromOpacity": {
      +        "type": "number"
      +      },
      +      "fromScale": {
      +        "type": "number"
      +      },
      +      "stiffness": {
      +        "type": "number"
      +      },
      +      "type": {
      +        "enum": [
      +          "fade",
      +          "slide",
      +          "scale",
      +          "blur",
      +          "spring"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "duration"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / exit / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/enter/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "damping": {
      +        "type": "number"
      +      },
      +      "direction": {
      +        "enum": [
      +          "up",
      +          "down",
      +          "left",
      +          "right"
      +        ],
      +        "type": "string"
      +      },
      +      "distance": {
      +        "type": "number"
      +      },
      +      "duration": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "fromOpacity": {
      +        "type": "number"
      +      },
      +      "fromScale": {
      +        "type": "number"
      +      },
      +      "stiffness": {
      +        "type": "number"
      +      },
      +      "type": {
      +        "enum": [
      +          "fade",
      +          "slide",
      +          "scale",
      +          "blur",
      +          "spring"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "duration"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / keyframes / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / keyframes / items / properties / position / $ref
      Removed value: -"#/properties/position"
    • addedInput schema / properties / keyframes / items / properties / position / properties
      Added value: +{
      +  "x": {
      +    "description": "Normalized horizontal center point, 0 left to 1 right",
      +    "type": "number"
      +  },
      +  "y": {
      +    "description": "Normalized vertical center point, 0 top to 1 bottom",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / keyframes / items / properties / position / required
      Added value: +[
      +  "x",
      +  "y"
      +]
    • addedInput schema / properties / keyframes / items / properties / position / type
      Added value: +"object"
    • removedInput schema / properties / lineStyles / additionalProperties / $ref
      Removed value: -"#/properties/textConfig/properties/lineStyles/additionalProperties"
    • addedInput schema / properties / lineStyles / additionalProperties / additionalProperties
      Added value: +{}
    • addedInput schema / properties / lineStyles / additionalProperties / properties
      Added value: +{
      +  "fontSize": {
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / lineStyles / additionalProperties / type
      Added value: +"object"
    • addedInput schema / properties / lineStyles / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / position / additionalProperties
      Removed value: -false
    • changedInput schema / properties / shadow / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "blur": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "color": {
      -        "description": "Shadow color as hex or rgba",
      -        "type": "string"
      -      },
      -      "offset": {
      -        "additionalProperties": false,
      -        "description": "Shadow offset in 720p logical pixels",
      -        "properties": {
      -          "x": {
      -            "$ref": "#/properties/position/properties/x"
      -          },
      -          "y": {
      -            "$ref": "#/properties/position/properties/y"
      -          }
      -        },
      -        "required": [
      -          "x",
      -          "y"
      -        ],
      -        "type": "object"
      -      },
      -      "opacity": {
      -        "maximum": 1,
      -        "minimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "color",
      -      "opacity",
      -      "blur",
      -      "offset"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "blur": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "color": {
      +        "description": "Shadow color as hex or rgba",
      +        "type": "string"
      +      },
      +      "offset": {
      +        "description": "Shadow offset in 720p logical pixels",
      +        "properties": {
      +          "x": {
      +            "description": "Normalized horizontal center point, 0 left to 1 right",
      +            "type": "number"
      +          },
      +          "y": {
      +            "description": "Normalized vertical center point, 0 top to 1 bottom",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "x",
      +          "y"
      +        ],
      +        "type": "object"
      +      },
      +      "opacity": {
      +        "maximum": 1,
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "color",
      +      "opacity",
      +      "blur",
      +      "offset"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / size / additionalProperties
      Removed value: -false
    • removedInput schema / properties / textAnimation / $ref
      Removed value: -"#/properties/textConfig/properties/textAnimation"
    • addedInput schema / properties / textAnimation / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "type": {
      +        "const": "none",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "cursor": {
      +        "type": "boolean"
      +      },
      +      "speed": {
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "typewriter",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "speed"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "fadeByWord",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "fadeByChar",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "direction": {
      +        "enum": [
      +          "left",
      +          "right",
      +          "up",
      +          "down"
      +        ],
      +        "type": "string"
      +      },
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "slideByLine",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "direction",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "scaleByWord",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / textConfig / additionalProperties
      Previous value: -trueNew value: +{}
    • removedInput schema / properties / textConfig / properties / background / additionalProperties
      Removed value: -false
    • removedInput schema / properties / textConfig / properties / background / properties / padding / $ref
      Removed value: -"#/properties/position"
    • addedInput schema / properties / textConfig / properties / background / properties / padding / properties
      Added value: +{
      +  "x": {
      +    "description": "Normalized horizontal center point, 0 left to 1 right",
      +    "type": "number"
      +  },
      +  "y": {
      +    "description": "Normalized vertical center point, 0 top to 1 bottom",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / textConfig / properties / background / properties / padding / required
      Added value: +[
      +  "x",
      +  "y"
      +]
    • addedInput schema / properties / textConfig / properties / background / properties / padding / type
      Added value: +"object"
    • changedInput schema / properties / textConfig / properties / lineStyles / additionalProperties / additionalProperties
      Previous value: -trueNew value: +{}
    • addedInput schema / properties / textConfig / properties / lineStyles / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / textConfig / properties / shadow / additionalProperties
      Removed value: -false
    • removedInput schema / properties / textConfig / properties / shadow / properties / offset / $ref
      Removed value: -"#/properties/position"
    • addedInput schema / properties / textConfig / properties / shadow / properties / offset / properties
      Added value: +{
      +  "x": {
      +    "description": "Normalized horizontal center point, 0 left to 1 right",
      +    "type": "number"
      +  },
      +  "y": {
      +    "description": "Normalized vertical center point, 0 top to 1 bottom",
      +    "type": "number"
      +  }
      +}
    • addedInput schema / properties / textConfig / properties / shadow / properties / offset / required
      Added value: +[
      +  "x",
      +  "y"
      +]
    • addedInput schema / properties / textConfig / properties / shadow / properties / offset / type
      Added value: +"object"
    • removedInput schema / properties / textConfig / properties / textAnimation / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "none",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cursor": {
      -        "type": "boolean"
      -      },
      -      "speed": {
      -        "type": "number"
      -      },
      -      "type": {
      -        "const": "typewriter",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "speed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "stagger": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "type": {
      -        "const": "fadeByWord",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "stagger"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "stagger": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "type": {
      -        "const": "fadeByChar",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "stagger"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "direction": {
      -        "enum": [
      -          "left",
      -          "right",
      -          "up",
      -          "down"
      -        ],
      -        "type": "string"
      -      },
      -      "stagger": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "type": {
      -        "const": "slideByLine",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "direction",
      -      "stagger"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "stagger": {
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "type": {
      -        "const": "scaleByWord",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "stagger"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / textConfig / properties / textAnimation / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "type": {
      +        "const": "none",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "cursor": {
      +        "type": "boolean"
      +      },
      +      "speed": {
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "typewriter",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "speed"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "fadeByWord",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "fadeByChar",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "direction": {
      +        "enum": [
      +          "left",
      +          "right",
      +          "up",
      +          "down"
      +        ],
      +        "type": "string"
      +      },
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "slideByLine",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "direction",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "stagger": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "scaleByWord",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "stagger"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose one real side effect ('Auto-creates an overlay track if none exist') and the preset-vs-custom precedence rules, which is genuine value. However, it says nothing about required permissions, whether the write is reversible, error cases (bad presetId, missing track), or what is returned.

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?

Three tight sentences, front-loaded with the action and its scope, then the two configuration modes, then the track side effect. The eight-item preset list repeats what the schema already states, so a small amount of text does not earn its place.

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

Completeness3/5

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

For a 42-parameter, deeply nested mutation tool with no annotations and no output schema, the description is thin: it omits that only workspaceId/editId/text are required and ignores entire config families (enter/exit animations, keyframes, textAnimation, lineStyles). It is saved by the fully documented schema, but on its own it does not prepare an agent for the tool's breadth.

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% across 42 parameters, so the schema already documents each field thoroughly; the baseline of 3 applies. The description adds only two semantic points beyond it: the text field overriding preset default text and the auto-created track when trackId is omitted. The enumerated preset IDs duplicate the presetId schema description.

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 opens with a specific verb+resource ('Add a text overlay to the video timeline') and then names the two ways to do it (presetId vs custom textConfig). The word 'text' implicitly separates it from add_media_overlay, but no sibling is named explicitly, so an agent must infer the boundary itself.

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 a useful in-tool decision rule: use presetId for an auto-applied style or supply custom textConfig, and note that text overrides the preset default. It never says when to pick this tool over add_media_overlay, add_remotion_overlay, or how to discover valid preset IDs (e.g., via get_text_presets), leaving sibling selection and prerequisites to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.