Skip to main content
Glama

Overlay image / video

overlay

Composite a watermark image or picture-in-picture video onto a base video, with selectable corner/center position, scale, and image opacity for overlaying.

Instructions

Composite a watermark image or a picture-in-picture video on top of the base video. Choose a corner/center position, optional scale (as a fraction of base width), and opacity for images.

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": "<input>",
      "overlayPath": "<overlayPath>",
      "output": "<output>"
    },
    "name": "overlay"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPath to the base video.
scaleNoOverlay width as a fraction of the base video width (0-1).
outputYesPath for the composited output video.
opacityNoOverlay opacity 0-1 (applies to image overlays).
positionNoWhere to place the overlay.bottom-right
overwriteNoOverwrite the output file if it already exists.
overlayPathYesPath to the overlay image or video.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 behavioral burden. It usefully discloses that opacity only applies to image overlays and that scale is relative to base width, but it says nothing about whether a shorter overlay video is looped or truncated, whether audio is preserved, or whether the output is re-encoded.

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?

Two short sentences, with the core operation front-loaded and configuration detail trailing. The second sentence largely duplicates schema content, but there is no wasted framing or filler.

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 7-parameter mutation tool with no annotations and no output schema, the description covers the core operation but omits important behavior: overlay duration handling, audio handling, output encoding characteristics, and the effect of overwrite. It is adequate to start the call but not to predict the result.

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 coverage is 100%, so every parameter including position, scale, opacity, and overwrite is already documented in the input schema. The description restates the scale-fraction and image-only-opacity semantics rather than adding new meaning, which lands at the baseline for fully covered schemas.

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 names a specific verb ('Composite') and both the overlay resource and its target ('watermark image or picture-in-picture video on top of the base video'). This is clearly distinguishable from subtitle or concatenation tools, but no sibling is named and no explicit contrast is drawn.

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?

Use is implied by the watermark/PiP framing, so an agent can infer the scenario. However, there is no explicit when-to-use, no prerequisites (e.g. does the base video need a specific codec?), and no statement of when another tool such as burn_subtitles would be the better choice.

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