Skip to main content
Glama

text_to_video

Generate videos from text prompts by creating a Wan task on RunAPI, returning task ID, status, and output URLs.

Instructions

Create a Wan task on RunAPI (text to video). Returns a task id, status, and output URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoDeclared type: integer.
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
ratioNoDeclared type: string.
promptNoDeclared type: string.
watermarkNoDeclared type: boolean.
timeout_msNo
multi_shotsNoDeclared type: boolean.
accelerationNoDeclared type: string.
aspect_ratioNoDeclared type: string.
callback_urlNoDeclared type: string.
negative_promptNoDeclared type: string.
duration_secondsNoDeclared type: integer.
poll_interval_msNo
output_resolutionNoDeclared type: string. Known values: "480p", "580p", "720p", "1080p".
reference_audio_urlNoDeclared type: string.
background_audio_urlNoDeclared type: string.
reference_image_urlsNoDeclared type: array.
reference_video_urlsNoDeclared type: array.
enable_safety_checkerNoDeclared type: boolean.
first_frame_image_urlNoDeclared type: string.
enable_prompt_expansionNoDeclared type: boolean.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed26 schema fields changedv0.2.0
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • addedInput schema / properties / acceleration / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / aspect_ratio / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / background_audio_url / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / callback_url / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / duration_seconds / description
      Added value: +"Declared type: integer."
    • changedInput schema / properties / duration_seconds / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / enable_prompt_expansion / description
      Added value: +"Declared type: boolean."
    • addedInput schema / properties / enable_safety_checker / description
      Added value: +"Declared type: boolean."
    • addedInput schema / properties / first_frame_image_url / description
      Added value: +"Declared type: string."
    • removedInput schema / properties / model / enum
      Removed value: -[
      -  "wan-2.2-a14b-text-to-video-turbo",
      -  "wan-2.5-text-to-video",
      -  "wan-2.6-text-to-video",
      -  "wan-2.7-r2v",
      -  "wan-2.7-text-to-video"
      -]
    • addedInput schema / properties / multi_shots
      Added value: +{
      +  "description": "Declared type: boolean.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / negative_prompt / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / output_resolution / description
      Added value: +"Declared type: string. Known values: \"480p\", \"580p\", \"720p\", \"1080p\"."
    • removedInput schema / properties / output_resolution / enum
      Removed value: -[
      -  "480p",
      -  "580p",
      -  "720p",
      -  "1080p"
      -]
    • addedInput schema / properties / poll_interval_ms / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / prompt / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / ratio / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / reference_audio_url / description
      Added value: +"Declared type: string."
    • addedInput schema / properties / reference_image_urls / description
      Added value: +"Declared type: array."
    • addedInput schema / properties / reference_video_urls / description
      Added value: +"Declared type: array."
    • addedInput schema / properties / seed / description
      Added value: +"Declared type: integer."
    • changedInput schema / properties / seed / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / timeout_ms / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / watermark / description
      Added value: +"Declared type: boolean."
    • addedInput schema / required
      Added value: +[]
  2. Changed17 schema fields changedv0.1.9
    • addedInput schema / properties / acceleration
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / aspect_ratio / enum
      Removed value: -[
      -  "16:9",
      -  "9:16",
      -  "1:1",
      -  "4:3",
      -  "3:4"
      -]
    • addedInput schema / properties / background_audio_url
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / callback_url
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / duration_seconds / maximum
      Removed value: -10
    • removedInput schema / properties / duration_seconds / minimum
      Removed value: -2
    • addedInput schema / properties / enable_prompt_expansion
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / enable_safety_checker
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / first_frame_image_url
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / negative_prompt
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / prompt
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / ratio
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / reference_audio_url
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / reference_image_urls
      Added value: +{
      +  "items": {},
      +  "type": "array"
      +}
    • addedInput schema / properties / reference_video_urls
      Added value: +{
      +  "items": {},
      +  "type": "array"
      +}
    • addedInput schema / properties / seed
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / watermark
      Added value: +{
      +  "type": "boolean"
      +}
  3. First observedv0.1.6

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the async task model ('Create a Wan task') and the return shape (task id, status, output URLs), which is genuinely useful. It omits cost implications, expected generation latency, auth requirements, and whether the task is billable or cancelable.

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?

Two sentences with zero padding, front-loaded with the action and platform, then the return values. Nothing is wasted and nothing needs reordering.

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

Completeness2/5

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

For a 22-parameter, zero-required tool with no annotations and no output schema, the description is thin. Naming the returned fields partially compensates for the missing output schema, but it says nothing about defaults, polling behavior tied to the 'wait' flag, or which parameters matter most, leaving an agent to guess at invocation.

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 91%, so the schema nominally owns parameter documentation, which sets the baseline at 3. In practice those schema descriptions are largely filler ('Declared type: string'), and the tool description adds no parameter meaning at all — notably absent is any hint that prompt is the key input while the other 21 fields are optional knobs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Create a Wan task on RunAPI (text to video)'. The parenthetical modality cleanly separates it from image_to_video and speech_to_video siblings, though those siblings are never named directly.

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

Usage Guidelines3/5

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

Usage is only implied: the '(text to video)' qualifier tells the agent to pick this when the input is a prompt rather than an image, audio clip, or existing video. There is no explicit when-to-use/when-not statement, no mention of the login prerequisite, and no comparison against edit_video or animate.

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