Skip to main content
Glama

overlay_image

Add images to videos with precise timing, positioning, and transparency control for creating watermarks, logos, or annotations.

Instructions

Overlay an image on top of a video with timing control.

Args: input_video_path (str): Path to background video. overlay_image_path (str): Path to image file. output_filename (str): Output video filename (saved inside VIDEO_OVERLAY_PATH). positioning (Literal): Where to place overlay. scale (tuple | None): (width, height) to resize image before placing. keep_audio (bool): Whether to keep background audio. opacity (float | None): Transparency level (0–1). None = no alpha applied. start_time (float): When to start showing overlay (seconds). duration (float | None): How long to show overlay (seconds). None = until end of video.

Returns: str: Path to generated video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_video_pathYes
overlay_image_pathYes
output_filenameNooutput.mp4
positioningNotop_right
scaleNo
keep_audioNo
opacityNo
start_timeNo
durationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It mentions that output is saved inside VIDEO_OVERLAY_PATH, which is useful context. However, it doesn't disclose critical behavioral traits like file format requirements, error handling, performance characteristics, or whether the operation is destructive to the original video. The description is minimal beyond basic functionality.

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?

The description is well-structured with a clear purpose statement followed by an Args section and Returns. It's appropriately sized for a complex tool with many parameters. Some sentences could be more front-loaded, but overall, it's efficient with minimal waste.

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

Completeness4/5

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

Given the tool's complexity (9 parameters, no annotations, but with output schema), the description is fairly complete. It explains all parameters in detail and mentions the return value. However, it lacks behavioral context (e.g., side effects, error cases) and usage guidelines, which are gaps for a mutation tool with no annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate fully. It provides detailed semantic explanations for all 9 parameters, including defaults, value ranges (e.g., opacity 0–1), and special cases (e.g., None values). This adds significant meaning beyond the bare schema, making parameters clear and actionable.

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?

The description clearly states the tool's purpose with specific verbs ('overlay an image on top of a video') and distinguishes it from siblings like 'overlays_video' (which likely overlays videos) and 'crop_video', 'scale_video', etc. It specifies the resource (video) and the action (overlay image) with timing control.

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 provides no guidance on when to use this tool versus alternatives like 'overlays_video' or other video manipulation tools. It lacks context about prerequisites (e.g., file formats supported) or exclusions (e.g., when not to use it). The usage is implied only by the tool name and description.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yubraaj11/ffmpeg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server