Skip to main content
Glama
cintelis

Ads Optimiser MCP server

Official
by cintelis

Generate a video

adsoptimiser_generate_video

Generate ad videos from a text prompt or by animating an image via URL, local path, or finished image job. Returns a job id; poll progress with the job status tool.

Instructions

Start an ad video generation (text-to-video, or image-to-video from source_image_path, source_image_url or source_job_id). Uses one video generation from the plan allowance and counts toward the daily video quota. Returns immediately with a job id; videos take one to several minutes, so check progress with adsoptimiser_get_job.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNogrok-imagine-video (default) or grok-imagine-video-1.5; see adsoptimiser_list_models.
promptYesWhat should happen in the video.
durationNoSeconds, 1 to 15.
voice_idsNoPreset voices (Grok Video 1.5, text-to-video, max 720p). Tag speech in the prompt as <AUDIO_0>..<AUDIO_2>.
resolutionNoDefaults to 720p. 1080p is Grok Video 1.5 only and costs about 3x more.
aspect_ratioNoDefaults to 9:16 (TikTok vertical).
source_job_idNoAnimate the image from this finished image job.
source_image_urlNoAnimate this image (image-to-video).
source_image_pathNoAnimate this local image (absolute path; image-to-video). It is uploaded first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds real behavioral context beyond that: it consumes one video generation from the plan allowance, counts toward a daily video quota, returns immediately with a job id, and takes one to several minutes. Failure modes and quota-exhaustion behavior are not described, keeping it short of a 5.

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?

Three sentences, zero filler, and the most decision-relevant information (what is generated and from what inputs) is front-loaded, with the quota/async caveats following.

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

Completeness5/5

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

Complete for an async job-launching tool with no output schema: the description explains that the immediate return is a job id, that completion is non-instant, and which sibling tool reports progress. Nothing needed to invoke it correctly is missing.

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%, so every parameter is already documented in the schema (including the image-to-video semantics of the source_* fields and the 1080p cost caveat). The description's contribution is mostly a restatement of the three source modes rather than new syntax or format guidance, so the baseline 3 applies.

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?

States a specific verb+resource ('Start an ad video generation') and immediately enumerates both modalities (text-to-video, image-to-video from source_image_path/source_image_url/source_job_id). This clearly separates it from the sibling adsoptimiser_generate_image and adsoptimiser_batch_generate without requiring a schema read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for when each mode applies (text-to-video vs. image-to-video conditioned on which source parameter is supplied) and explicitly routes progress checking to adsoptimiser_get_job. It stops short of stating exclusions, e.g. when to prefer adsoptimiser_generate_image or adsoptimiser_batch_generate for multi-video workloads.

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