MCP server for xAI Grok Imagine Video API - Generate and edit videos using grok-imagine-video model
Server demonstrates solid definition quality with well-structured schemas, comprehensive parameter descriptions, and clear tool naming. All three tools follow verb-noun naming conventions (generate_video, edit_video, extend_video). Input schemas are fully specified with proper JSON Schema including types, enums, descriptions, and constraints. Tool descriptions are adequate but could be more concise for LLM optimization. Error handling is present but lacks actionable recovery guidance. Parameter documentation is thorough with constraints (min/max for numeric values, enums for constrained options), though some descriptions are verbose (>200 chars, beyond the 50-200 optimal range for LLM processing). Output schemas are not explicitly documented in the source provided. Security considerations (API key injection via environment) are properly handled server-side.
Edit an existing video using xAI Grok Imagine Video API. Provide a source video URL along with a prompt describing the desired changes. The maximum supported video length is 8.7 seconds. The edited video will have the same duration as the original.
Extend an existing video by generating continuation content using xAI Grok Imagine Video API. Provide a source video URL and a prompt describing what should happen next. The extension segment duration is 2-10 seconds (default 6).
Generate a new video using xAI Grok Imagine Video API (grok-imagine-video). Supports text-to-video (T2V), image-to-video (I2V), and reference-to-video (R2V). Supports aspect ratios: 16:9, 4:3, 1:1, 9:16, 3:4, 3:2, 2:3. Video duration: 1-15 seconds (default 8). Resolution: 480p, 720p, or 1080p (1080p only with model grok-imagine-video-1.5). The output MP4 always contains an auto-generated audio track (sound effects, ambience, score) driven by the prompt; the only audio control is reference_audios (preset speaking voices, grok-imagine-video-1.5 only). For image-to-video, provide image_url, image_path, or image_file_id. For reference-to-video, provide reference_images and/or reference_audios.
Tool descriptions exceed optimal length for LLM processing. generate_video description is ~450 characters; recommended 50-200 chars for LLM optimization.
Output schemas are not documented in source code. LLMs cannot determine what fields to expect from tool responses, limiting downstream chaining and field extraction.
Error handling lacks recovery guidance. Errors should tell LLMs what to do next (retry, call alternative tool, ask user), not just report failure.
No tool annotations present (readOnlyHint, destructiveHint, idempotentHint). All three tools are write operations that modify state (generate, edit, extend), and should be marked with destructiveHint or idempotentHint as appropriate.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 48 | - | v1 |
Mutually exclusive parameter groups not clearly enforced. generate_video allows image_url/image_path/image_file_id as alternatives, and reference_images/reference_audios as alternatives to the former. Documentation mentions mutual exclusion but LLMs need explicit validation and error messages.