Skip to main content
Glama

Create Video from Document

create_video_from_document

Turn a document (PDF, DOCX, PPTX, Keynote, TXT) into ONE finished video, unattended: it is read, planned, storyboarded and built into editable slides with AI narration. Use this for "make a video from this file"; use create_course when the user wants a multi-video course. Give a public fileUrl (a file the user attached in chat has one) and its filename. Set contentStyle "promotional" for a marketing video that pitches the product to its buyer (a brochure or product sheet), "announcement" for a launch; the default "training" teaches. Optional pace ("snackable" short and punchy, "course" default, "inDepth" thorough) and aiVideo ({ enabled, stylePresetId }: builds the video from AI footage, a full-frame clip on nearly every scene, Business and Enterprise only). Costs credits. Returns videoId at once; the video is in progress until the job completes (poll jobId with get_job_status). Takes a few minutes.

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": {
      "fileUrl": "<fileUrl>",
      "filename": "<filename>"
    },
    "name": "create_video_from_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
filmNoEvery scene designed and animated, paying customers only: motion (150 credits/min in total) or premium (200). Looks: match-document (default), isometric, news-desk, blueprint, swiss-motion, risograph, whiteboard, paper-popup, transit-map, dark-keynote. Takes about 15 minutes.
paceNo
aiVideoNoAI pictures and clips. Styles: documentary (default), cinematic, cartoon3d, flat2d, storybook, brand.
fileUrlYesPublic URL of the document
filenameYesIts file name; the extension decides how it is read
languageNoNarration language code (list_languages); detected from the document when omitted
projectIdNoProject folder for the video
productNameNoThe product's name, for promotional
contentStyleNoWhat the video is for. promotional and announcement write a marketing video (buyer, gains, brand close) instead of a lesson. Default training.
instructionsNoAudience, tone, what to focus on

Output Schema

NameRequiredDescriptionDefault
jobIdNo
statusNo
videoIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing cost ("Costs credits"), plan gating (aiVideo Business and Enterprise only; film paying customers only), runtime ("a few minutes", film ~15 minutes), and the async contract (returns videoId at once, poll jobId with get_job_status). The only gap is that it doesn't say what happens to credits or partial artifacts if the job fails, which matters for a non-idempotent, non-destructive write.

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?

Front-loads the core action and the sibling disambiguation, then moves to inputs, options, and cost/latency in a logical order. It is dense with parenthetical asides and enum explanations, so it runs long for a single paragraph, but nearly every clause carries actionable detail rather than filler.

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?

For a 10-parameter tool with nested objects, an output schema, and high-risk billing behavior, the description covers the essentials: prerequisites, plan limits, cost, async completion path, and mode selection. Since an output schema exists, the absence of detailed return-value documentation is not a gap.

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

Parameters4/5

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

Schema description coverage is already 90%, yet the description still adds meaning: it explains that filename's extension drives parsing, that a chat-attached file already has a usable public fileUrl, and what each contentStyle and pace value produces. It leaves the film/styleId and aiVideo/stylePresetId look catalogs to the schema, which is reasonable.

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 concrete verb+resource pair (turn a document into ONE finished video) and immediately names the pipeline stages (read, planned, storyboarded, built into editable slides with AI narration). It explicitly contrasts with the sibling create_course, so an agent can route between the two without opening either schema.

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

Usage Guidelines5/5

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

Gives a literal trigger phrase ("make a video from this file") and a named alternative with the condition that selects it (create_course for a multi-video course). It also disambiguates the contentStyle enum in usage terms: promotional for a buyer-facing pitch, announcement for a launch, training as the default teaching mode, plus when to use aiVideo and film.

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.

Resources