Skip to main content
Glama

Generate a MAGI-2 video

generate_video

Start a MAGI-2 video generation (1080p, up to 30 s, optional native audio). Costs 20 Credits per second from the user's account. Rendering takes about 10-20 minutes: this returns immediately with a video id; call get_video every few minutes until status is "succeeded", then share video_url. Modes: text-to-video (prompt only), image-to-video (first_frame + optional last_frame), reference-to-video (images/videos/audios, referenced in the prompt as @Image1, @Video1, @Audio1). Write prompts in English: subject, action, camera move, and sound; put spoken lines in quotes.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
audiosNo
imagesNo
promptYes
videosNo
durationNoSeconds of video.
last_frameNoPublic https:// URL of the file, or an upload id (flow_input_…).
first_frameNoPublic https:// URL of the file, or an upload id (flow_input_…).
aspect_ratioNo16:9
generate_audioNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load, and it does well: it discloses cost (20 Credits per second charged to the user's account), 10-20 minute render latency, asynchronous return of a video id, and that audio is optional/native. It omits credit behavior on failure, rate limits, and whether the returned video_url expires.

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-loaded with the single most important fact (cost per second) and then the async workflow, modes, and prompt guidance in a tight sequence. It is one dense paragraph rather than a scannable list, but virtually no sentence is wasted.

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?

For a 10-parameter, unannotated, no-output-schema generation tool this is close to self-sufficient: cost, latency, polling contract, and mode/parameter mapping are all present. The remaining gaps are per-parameter details (aspect_ratio, audio defaults) and error/expiry behavior.

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?

With only 30% schema description coverage across 10 parameters, the description compensates substantially: it maps mode to first_frame/last_frame, explains that images/videos/audios are referenced in the prompt as @Image1/@Video1/@Audio1, and gives prompt authoring rules (English, subject/action/camera/sound, spoken lines in quotes). It still leaves aspect_ratio and the generate_audio=true default unexplained.

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 and resource ("Start a MAGI-2 video generation") plus the concrete envelope (1080p, up to 30 s, optional native audio). It also implicitly separates itself from the read-side siblings by framing itself as the job starter that hands off to get_video for status.

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 explicit routing: poll get_video every few minutes until status is "succeeded", then share video_url, and explains which input combination selects each of the three modes. It stops short of when-not guidance, e.g. whether to pre-check price with estimate_cost or how to handle failures/refunds.

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.