Skip to main content
Glama

Wait for Video Project

wait_for_video_project
Read-onlyIdempotent

Polls a video project until it completes, errors, is canceled or times out. Use with the id returned by a video create tool. Read-only; returns download URLs when complete. After a timeout, resume with the same id rather than creating another generation. Use signed download URLs exactly as returned. Does not inline video content.

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": {
      "id": "<id>"
    },
    "name": "wait_for_video_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExisting project ID returned by the matching creation tool. Reuse this ID after a wait timeout.
timeout_secondsNoMaximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation.
max_inline_downloadsNoReserved for compatibility. Video waits do not inline downloads; leave at zero.
poll_interval_secondsNoSeconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds.
include_inline_downloadsNoReserved for compatibility. Video waits return download links, never inline video, regardless of this value.

Output Schema

NameRequiredDescriptionDefault
idNoExisting project identifier, retained for subsequent status checks.
statusNoProject status such as complete, error or canceled; timeout means only this wait call ended.
messageNoWait timeout or recovery guidance, when present.
downloadsNoAvailable output files with exact signed URLs. May be absent until completion.
last_projectNoLast observed API project snapshot if the wait timed out after a successful status check.
project_typeYesKind of project being retrieved.
exact_download_urlsNoConvenience list of the same unmodified signed output URLs.
download_expiration_metadataNoExpiration metadata only. Never append it to a download URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"Existing project ID returned by the matching creation tool. Reuse this ID after a wait timeout."
    • addedInput schema / properties / include_inline_downloads / description
      Added value: +"Reserved for compatibility. Video waits return download links, never inline video, regardless of this value."
    • addedInput schema / properties / max_inline_downloads / description
      Added value: +"Reserved for compatibility. Video waits do not inline downloads; leave at zero."
    • addedInput schema / properties / poll_interval_seconds / description
      Added value: +"Seconds between status checks. Must be finite and nonnegative; values below 0.5 use 0.5 seconds."
    • addedInput schema / properties / timeout_seconds / description
      Added value: +"Maximum seconds for this wait call, finite and greater than zero. Timeout does not cancel the project or start another generation."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Existing project status and exact output links. A wait timeout is not a generation failure; resume with the same ID.",
      +  "properties": {
      +    "download_expiration_metadata": {
      +      "description": "Expiration metadata only. Never append it to a download URL.",
      +      "items": {
      +        "properties": {
      +          "download_index": {
      +            "description": "Zero-based index in the upstream download list, encoded as text.",
      +            "type": "string"
      +          },
      +          "expires_at": {
      +            "description": "Expiration timestamp provided by the API.",
      +            "type": "string"
      +          },
      +          "note": {
      +            "description": "Guidance for preserving the signed URL.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "downloads": {
      +      "description": "Available output files with exact signed URLs. May be absent until completion.",
      +      "items": {
      +        "properties": {
      +          "url": {
      +            "description": "Use this signed download URL unchanged, including all query parameters.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "exact_download_urls": {
      +      "description": "Convenience list of the same unmodified signed output URLs.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "id": {
      +      "description": "Existing project identifier, retained for subsequent status checks.",
      +      "type": "string"
      +    },
      +    "last_project": {
      +      "description": "Last observed API project snapshot if the wait timed out after a successful status check.",
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Wait timeout or recovery guidance, when present.",
      +      "type": "string"
      +    },
      +    "project_type": {
      +      "description": "Kind of project being retrieved.",
      +      "enum": [
      +        "image",
      +        "video",
      +        "audio"
      +      ],
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Project status such as complete, error or canceled; timeout means only this wait call ended.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "project_type"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is low, yet the description still adds real behavior: what terminal states are polled, that a timeout does not cancel the project or spawn a new generation, and that results are signed download URLs to be used verbatim rather than inlined video.

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?

Six short sentences, front-loaded with purpose then operational constraints; every sentence carries distinct information (terminal states, ID reuse, timeout behavior, URL usage, no inlining). No redundant restatement of the title.

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?

Output schema exists so return values needn't be spelled out, yet the description usefully notes download URLs and the no-inline constraint. Combined with 100% schema coverage and safe annotations, an agent has everything needed to invoke this long-poll correctly and recover from timeouts.

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 coverage is 100%, so the schema already documents all five parameters including defaults and the reserved compatibility fields. The description only reinforces ID reuse and timeout semantics, adding little meaning beyond the structured fields; 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 and resource plus the terminal conditions ('polls a video project until it completes, errors, is canceled or times out'). The polling-until-terminal framing distinguishes it from the sibling get_video_project single-status read without needing to name it.

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 usage context ('use with the id returned by a video create tool') and a clear anti-pattern ('after a timeout, resume with the same id rather than creating another generation'). It lacks an explicit pointer to get_video_project for a single non-blocking status check, so guidance is strong but not fully routed among siblings.

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