Skip to main content
Glama

add_media_overlay

Add an image or video media overlay to the edit timeline with precise transform, border radius, border, shadow, clipping, speed ramp, volume, animations, and keyframes.

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>",
      "mediaId": "<mediaId>",
      "type": "<type>"
    },
    "name": "add_media_overlay"
  }
}

Input Schema

NameRequiredDescriptionDefault
exitNoExit animation, or null to remove
sizeNoNormalized overlay size
typeYesOverlay media type
enterNoEntrance animation, or null to remove
widthNoLegacy shorthand for size.width
borderNoBorder styling, or null to remove
editIdYesThe edit ID
heightNoLegacy shorthand for size.height
shadowNoMedia overlay drop shadow, or null to remove
volumeNoVideo overlay audio volume
clipEndNoVideo overlay source trim end in seconds
mediaIdYesWorkspace MediaDocV2 ID to use as the overlay source
opacityNoOpacity from 0 to 1
trackIdNoOverlay track ID (auto-creates a track if not provided)
durationNoTimeline duration in seconds
positionNoNormalized overlay position
rotationNoRotation in degrees
clipStartNoVideo overlay source trim start in seconds
keyframesNoTransform keyframes relative to item start
positionXNoLegacy shorthand for position.x
positionYNoLegacy shorthand for position.y
speedRampNoVariable speed curve for video overlays
startTimeNoTimeline start time in seconds
workspaceIdYesThe workspace ID
borderRadiusNoCorner radius in 720p logical pixels
playbackSpeedNoFlat playback speed for video overlays

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 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 / 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
    • changedInput schema / properties / speedRamp / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "curve": {
      -        "description": "Cubic bezier control points [c1x,c1y,c2x,c2y]",
      -        "items": {
      -          "type": "number"
      -        },
      -        "maxItems": 4,
      -        "minItems": 4,
      -        "type": "array"
      -      },
      -      "enabled": {
      -        "type": "boolean"
      -      },
      -      "endSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "startSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "enabled",
      -      "startSpeed",
      -      "endSpeed",
      -      "curve"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "curve": {
      +        "description": "Cubic bezier control points [c1x,c1y,c2x,c2y]",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 4,
      +        "minItems": 4,
      +        "type": "array"
      +      },
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "endSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "startSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "enabled",
      +      "startSpeed",
      +      "endSpeed",
      +      "curve"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / speedRamp / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "curve": {
      -        "items": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ],
      -        "maxItems": 4,
      -        "minItems": 4,
      -        "type": "array"
      -      },
      -      "enabled": {
      -        "type": "boolean"
      -      },
      -      "endSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "startSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "enabled",
      -      "startSpeed",
      -      "endSpeed",
      -      "curve"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "curve": {
      +        "description": "Cubic bezier control points [c1x,c1y,c2x,c2y]",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 4,
      +        "minItems": 4,
      +        "type": "array"
      +      },
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "endSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "startSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "enabled",
      +      "startSpeed",
      +      "endSpeed",
      +      "curve"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / speedRamp / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "curve": {
      -        "description": "Cubic bezier control points [c1x,c1y,c2x,c2y]",
      -        "items": {
      -          "type": "number"
      -        },
      -        "maxItems": 4,
      -        "minItems": 4,
      -        "type": "array"
      -      },
      -      "enabled": {
      -        "type": "boolean"
      -      },
      -      "endSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "startSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "enabled",
      -      "startSpeed",
      -      "endSpeed",
      -      "curve"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "curve": {
      +        "items": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ],
      +        "maxItems": 4,
      +        "minItems": 4,
      +        "type": "array"
      +      },
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "endSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "startSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "enabled",
      +      "startSpeed",
      +      "endSpeed",
      +      "curve"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / speedRamp / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "curve": {
      -        "items": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ],
      -        "maxItems": 4,
      -        "minItems": 4,
      -        "type": "array"
      -      },
      -      "enabled": {
      -        "type": "boolean"
      -      },
      -      "endSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "startSpeed": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "enabled",
      -      "startSpeed",
      -      "endSpeed",
      -      "curve"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "curve": {
      +        "description": "Cubic bezier control points [c1x,c1y,c2x,c2y]",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 4,
      +        "minItems": 4,
      +        "type": "array"
      +      },
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "endSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "startSpeed": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "enabled",
      +      "startSpeed",
      +      "endSpeed",
      +      "curve"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses none of the important traits: that it mutates the timeline, that a track is auto-created when trackId is omitted, what units and normalization are used, or what happens on conflicting startTime/duration. It reads as a capability list rather than a behavioral contract.

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?

A single front-loaded sentence with the action first and the capability surface after. Despite the long feature list, every element maps to a real parameter group, so nothing is wasted.

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 26-parameter mutation tool with no annotations and no output schema, the description covers the feature surface but omits required-parameter expectations, defaults, return shape, and side effects like automatic track creation. It is enough to recognize the tool's domain but not enough to predict its behavior confidently.

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 all 26 parameters, so the schema already explains normalization, units, legacy shorthands, and the enter/exit/keyframe structures. The description's feature enumeration (border radius, shadow, clipping, speed ramp, volume, animations, keyframes) loosely mirrors the parameter groups but adds no semantics beyond the schema, making the baseline 3 appropriate.

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 and resource ("Add an image or video media overlay to the edit timeline") and enumerates the transform properties it controls, which implicitly separates it from add_text_overlay and add_remotion_overlay. It never names a sibling explicitly, so an agent must infer the boundary between media, text, and remotion overlays.

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?

There is no when-to-use versus when-not guidance, no mention of prerequisites such as requiring an existing edit or workspace, and no pointer to update_overlay_item for adjusting an overlay after creation. Usage is only implied by the verb "Add".

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.