Skip to main content
Glama

video_add_text

Destructive

Overlay text such as a title, caption, or watermark onto a video, set its position and timing, and save the edited output.

Instructions

Burn one text element (title, caption, watermark) into a video. Returns JSON {success, output_path}.

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

Input Schema

NameRequiredDescriptionDefault
crfNoOverride CRF value (0-51, lower = better quality). Default 23.
fontNoPath to font file. Uses system default if omitted.
sizeNoFont size in pixels.
textYesText to overlay.
colorNoText color (CSS color name or hex).white
presetNoOverride FFmpeg encoding preset (ultrafast, fast, medium, slow, veryslow).
shadowNoAdd text shadow for readability.
durationNoHow long text is visible (seconds). Requires start_time.
positionNoNamed (top-left, top-center, ...), pixels {"x": 100, "y": 50}, or fractions {"x_pct": 0.5, "y_pct": 0.5}.top-center
overwriteNoAllow replacing existing media files.
input_pathYesAbsolute path to the input video.
start_timeNoWhen the text appears (seconds). Null = always visible.
output_pathNoWhere to save the output. Auto-generated if omitted.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changedv2.0.0
    • addedInput schema / properties / color / description
      Added value: +"Text color (CSS color name or hex)."
    • removedInput schema / properties / color / title
      Removed value: -"Color"
    • addedInput schema / properties / crf / description
      Added value: +"Override CRF value (0-51, lower = better quality). Default 23."
    • removedInput schema / properties / crf / title
      Removed value: -"Crf"
    • addedInput schema / properties / duration / description
      Added value: +"How long text is visible (seconds). Requires start_time."
    • removedInput schema / properties / duration / title
      Removed value: -"Duration"
    • addedInput schema / properties / font / description
      Added value: +"Path to font file. Uses system default if omitted."
    • removedInput schema / properties / font / title
      Removed value: -"Font"
    • addedInput schema / properties / input_path / description
      Added value: +"Absolute path to the input video."
    • removedInput schema / properties / input_path / title
      Removed value: -"Input Path"
    • addedInput schema / properties / output_path / description
      Added value: +"Where to save the output. Auto-generated if omitted."
    • removedInput schema / properties / output_path / title
      Removed value: -"Output Path"
    • changedInput schema / properties / overwrite / description
      Previous value: -"Explicitly allow replacing existing media. Existing non-media files are protected."New value: +"Allow replacing existing media files."
    • removedInput schema / properties / overwrite / title
      Removed value: -"Overwrite"
    • addedInput schema / properties / position / description
      Added value: +"Named (top-left, top-center, ...), pixels {\"x\": 100, \"y\": 50}, or fractions {\"x_pct\": 0.5, \"y_pct\": 0.5}."
    • removedInput schema / properties / position / title
      Removed value: -"Position"
    • addedInput schema / properties / preset / description
      Added value: +"Override FFmpeg encoding preset (ultrafast, fast, medium, slow, veryslow)."
    • removedInput schema / properties / preset / title
      Removed value: -"Preset"
    • addedInput schema / properties / shadow / description
      Added value: +"Add text shadow for readability."
    • removedInput schema / properties / shadow / title
      Removed value: -"Shadow"
    • addedInput schema / properties / size / description
      Added value: +"Font size in pixels."
    • removedInput schema / properties / size / title
      Removed value: -"Size"
    • addedInput schema / properties / start_time / description
      Added value: +"When the text appears (seconds). Null = always visible."
    • removedInput schema / properties / start_time / title
      Removed value: -"Start Time"
    • addedInput schema / properties / text / description
      Added value: +"Text to overlay."
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • removedInput schema / title
      Removed value: -"video_add_textArguments"
    • removedOutput schema / title
      Removed value: -"video_add_textDictOutput"
  2. Changed1 schema field changedv1.16.4
    • addedInput schema / properties / overwrite
      Added value: +{
      +  "default": false,
      +  "description": "Explicitly allow replacing existing media. Existing non-media files are protected.",
      +  "title": "Overwrite",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changedv1.16.0
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed4 schema fields changedv1.5.1
    • addedInput schema / properties / crf
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Crf"
      +}
    • addedInput schema / properties / position / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / position / type
      Removed value: -"string"
    • addedInput schema / properties / preset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Preset"
      +}
  5. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already disclose that the operation is non-read-only, destructive, and non-idempotent. The description adds that it burns a single text element and returns {success, output_path}, but it does not explain overwrite behavior, permissions, or what exactly may be destroyed.

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 two tight sentences with zero waste. It front-loads the action and follows with the return shape, making it easy to scan.

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 13-parameter media mutation tool, the description is minimal, though the full schema, output schema, and annotations carry much of the burden. It still omits important behavioral context such as overwrite semantics and when to use this tool versus sibling operations.

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?

The input schema has 100% description coverage and richly documents all 13 parameters, so the schema carries the parameter semantics. The description adds no parameter-specific meaning beyond the general idea of overlaying text.

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 clearly states a specific verb and resource: burn one text element (title, caption, watermark) into a video. It is distinguishable from audio and general editing siblings by the text-overlay scope, but it does not explicitly name or differentiate against alternatives.

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 gives no when-to-use guidance, prerequisites, or alternatives. It merely implies usage by stating what the tool does, leaving the agent to infer when this is preferable to video_effects_ops, video_edit_ops, or other siblings.

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