Skip to main content
Glama

Submit Video Tool

submit_video

Submit a source video url (YouTube, Twitch or Kick past broadcast or clip, Vimeo, Google Drive, Dropbox, OneDrive, Rumble, or a direct video file) to turn into viral clips, with an optional title. Returns the new video id (a hashid) and its status.

Processing is ASYNCHRONOUS: this returns status: "downloading", a paused pending_credits state, or queued (the team already has a video over 2 hours processing; a second one over 2 hours starts by itself when that one finishes, and the result carries a message saying so). Poll get_video_status with the returned id while processing moves. Do not poll pending_credits: when a failed payment caused the pause, the result includes payment_required: true, a message, and billing_url; show that guidance so the user can repair payment.

When get_account shows free_minutes, this video processes free_minutes of its minutes free, with a watermark and no card, and the result has free_taste: true. Do not pass start_seconds/end_seconds for it unless the user names a part: OpenClip picks the free part.

On a free trial, a video longer than the trial minutes left starts the paid plan right away (the rule the trial checkout states), so the whole video is processed on plan minutes. Trim it with start_seconds/end_seconds to stay on the trial. If the card is declined, the plan does not start and the trial keeps going: the video is processed for the trial minutes left. A video longer than the plan's own minutes does not start the plan either: the trial processes the minutes it has left. A trial you cancelled never starts a plan by itself.

Optionally pass an agent id (a hashid from list_agents) to process the video with that agent's settings (caption preset, composition defaults, …); omit it to use the team's defaults.

Optionally pass max_clip_seconds (15 to 90) to cap how long each clip runs (omit it for automatic lengths, 40 to 90 seconds), and clip_guidance (up to 300 characters) to say which moments to prefer, for example "only the funniest reactions". Guidance that is too narrow or not about picking moments is rejected with a reason and a broader suggestion.

Optionally pass content_genre: "gaming" for gameplay or stream VODs (clip picking favors reactions and action and is tuned to avoid cutscenes and story reveals, so check story-mode clips before posting; automatic lengths become 30 to 60 seconds), or "general" for the default tuning. Omit it to use the agent's saved content_genre; when the agent has none, a Twitch or Kick past broadcast or clip in a game category, a YouTube video in the Gaming category, or a video whose title names GTA and whose frames show the game runs as gaming.

Optionally pass start_seconds and end_seconds to process only that part of the source (for example one segment of a long stream). Only that part is processed and billed. Send both or neither. A whole video that is too long to fetch at 720p or better ends as download_failed; get_video_status then gives a failure_message naming the longest part that fits, so submit again with a range of that length.

Safe to retry: submitting the same url + agent + clip preferences (including content_genre) + range again returns an existing run for it from the last 24h (still processing, or completed) as deduped: true instead of starting a second run. Submitting the same url with a DIFFERENT agent, clip preferences or range starts a new run (so you can re-process a source with other settings). A previously failed url can be resubmitted to retry it.

Errors: an unsupported/invalid URL is rejected and an agent not on your team is rejected. A live stream, a subscriber-only past broadcast, or an age-restricted video is rejected with the reason; retrying will not help. A missing subscription or insufficient credits parks the video in pending_credits; direct the user to OpenClip before checking again.

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": {
      "url": "<url>"
    },
    "name": "submit_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe source video URL to process (a supported provider or a direct video file).
agentNoOptional agent id (hashid from list_agents) whose settings control processing/rendering. Must be one of your team's agents. Omit to use team defaults.
titleNoOptional title for the video; defaults to the source title.
end_secondsNoOptional end of the part to process, in seconds into the source. Send it with `start_seconds`; it must be after it.
clip_guidanceNoOptional guidance for which moments to prefer (up to 300 characters). Rejected with a reason and a broader suggestion when too narrow.
content_genreNoOptional kind of video: "gaming" for gameplay or stream VODs, "general" for the default tuning. Omit to use the agent's saved content_genre, or, when it has none, gaming for a Twitch or Kick game category, a YouTube Gaming video, or a GTA-titled video whose frames show the game.
start_secondsNoOptional start of the part to process, in seconds into the source. Send it with `end_seconds`; omit both to process the whole video.
max_clip_secondsNoOptional cap on clip length in seconds (15 to 90). Clips then run between half the cap and the cap. Omit for automatic lengths (40 to 90 seconds).

Output Schema

NameRequiredDescriptionDefault
videoYesThe video id (hashid). Pass it as `video` to get_video_status, list_clips, get_render_status and render_clip.
statusYesThe video status. downloading, uploaded and processing are in-flight; pending_credits is paused; queued waits for another video over 2 hours from the same team and starts by itself; waiting_for_replay waits for a live stream to end and starts by itself; completed, failed and download_failed are terminal.
dedupedYesTrue when an existing run for this url + agent + clip preferences from the last 24h was returned instead of starting a new one.
messageNoUser-safe explanation of why processing is paused. Present while the video is pending_credits, queued or waiting_for_replay.
free_tasteNoPresent and true when part of the video processes free, with a watermark (the free_minutes get_account reported). Its clips come from that part.
billing_urlNoOpenClip billing page where the user can recover. Present with payment_required or subscription_required.
payment_requiredNoPresent and true when an open failed subscription payment, or a trial card that failed its check, is blocking processing.
subscription_requiredNoPresent and true when terminal payment failure requires a new subscription.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / content_genre / description
      Previous value: -"Optional kind of video: \"gaming\" for gameplay or stream VODs, \"general\" for the default tuning. Omit to use the agent's saved content_genre, or, when it has none, gaming for a Twitch or Kick game category or YouTube Gaming video."New value: +"Optional kind of video: \"gaming\" for gameplay or stream VODs, \"general\" for the default tuning. Omit to use the agent's saved content_genre, or, when it has none, gaming for a Twitch or Kick game category, a YouTube Gaming video, or a GTA-titled video whose frames show the game."
  2. Changed1 schema field changed
    • changedOutput schema / properties / payment_required / description
      Previous value: -"Present and true when an open failed subscription payment is blocking processing."New value: +"Present and true when an open failed subscription payment, or a trial card that failed its check, is blocking processing."
  3. Changed1 schema field changed
    • addedOutput schema / properties / free_taste
      Added value: +{
      +  "description": "Present and true when part of the video processes free, with a watermark (the free_minutes get_account reported). Its clips come from that part.",
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changed
    • changedOutput schema / properties / message / description
      Previous value: -"User-safe explanation of why processing is paused. Present while the video is pending_credits or queued."New value: +"User-safe explanation of why processing is paused. Present while the video is pending_credits, queued or waiting_for_replay."
    • changedOutput schema / properties / status / description
      Previous value: -"The video status. downloading, uploaded and processing are in-flight; pending_credits is paused; queued waits for another video over 2 hours from the same team and starts by itself; completed, failed and download_failed are terminal."New value: +"The video status. downloading, uploaded and processing are in-flight; pending_credits is paused; queued waits for another video over 2 hours from the same team and starts by itself; waiting_for_replay waits for a live stream to end and starts by itself; completed, failed and download_failed are terminal."
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "downloading",
      -  "download_failed",
      -  "uploaded",
      -  "pending_credits",
      -  "queued",
      -  "processing",
      -  "completed",
      -  "failed"
      -]New value: +[
      +  "downloading",
      +  "download_failed",
      +  "waiting_for_replay",
      +  "uploaded",
      +  "pending_credits",
      +  "queued",
      +  "processing",
      +  "completed",
      +  "failed"
      +]
  5. Changed4 schema fields changed
    • addedInput schema / properties / content_genre
      Added value: +{
      +  "description": "Optional kind of video: \"gaming\" for gameplay or stream VODs, \"general\" for the default tuning. Omit to use the agent's saved content_genre, or, when it has none, gaming for a Twitch or Kick game category or YouTube Gaming video.",
      +  "enum": [
      +    "general",
      +    "gaming"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / message / description
      Previous value: -"User-safe explanation of why processing is paused. Present while the video is pending_credits."New value: +"User-safe explanation of why processing is paused. Present while the video is pending_credits or queued."
    • changedOutput schema / properties / status / description
      Previous value: -"The video status. downloading, uploaded and processing are in-flight; pending_credits is paused; completed, failed and download_failed are terminal."New value: +"The video status. downloading, uploaded and processing are in-flight; pending_credits is paused; queued waits for another video over 2 hours from the same team and starts by itself; completed, failed and download_failed are terminal."
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "downloading",
      -  "download_failed",
      -  "uploaded",
      -  "pending_credits",
      -  "processing",
      -  "completed",
      -  "failed"
      -]New value: +[
      +  "downloading",
      +  "download_failed",
      +  "uploaded",
      +  "pending_credits",
      +  "queued",
      +  "processing",
      +  "completed",
      +  "failed"
      +]
  6. Changed2 schema fields changed
    • addedInput schema / properties / end_seconds
      Added value: +{
      +  "description": "Optional end of the part to process, in seconds into the source. Send it with `start_seconds`; it must be after it.",
      +  "maximum": 86400,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / start_seconds
      Added value: +{
      +  "description": "Optional start of the part to process, in seconds into the source. Send it with `end_seconds`; omit both to process the whole video.",
      +  "maximum": 86400,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  7. Changed3 schema fields changed
    • addedInput schema / properties / clip_guidance
      Added value: +{
      +  "description": "Optional guidance for which moments to prefer (up to 300 characters). Rejected with a reason and a broader suggestion when too narrow.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • addedInput schema / properties / max_clip_seconds
      Added value: +{
      +  "description": "Optional cap on clip length in seconds (15 to 90). Clips then run between half the cap and the cap. Omit for automatic lengths (40 to 90 seconds).",
      +  "maximum": 90,
      +  "minimum": 15,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / deduped / description
      Previous value: -"True when an existing run for this url + agent from the last 24h was returned instead of starting a new one."New value: +"True when an existing run for this url + agent + clip preferences from the last 24h was returned instead of starting a new one."
  8. Changed1 schema field changed
    • changedOutput schema / properties / message / description
      Previous value: -"User-safe billing recovery guidance. Present with payment_required or subscription_required."New value: +"User-safe explanation of why processing is paused. Present while the video is pending_credits."
  9. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "billing_url": {
      +      "description": "OpenClip billing page where the user can recover. Present with payment_required or subscription_required.",
      +      "type": "string"
      +    },
      +    "deduped": {
      +      "description": "True when an existing run for this url + agent from the last 24h was returned instead of starting a new one.",
      +      "type": "boolean"
      +    },
      +    "message": {
      +      "description": "User-safe billing recovery guidance. Present with payment_required or subscription_required.",
      +      "type": "string"
      +    },
      +    "payment_required": {
      +      "description": "Present and true when an open failed subscription payment is blocking processing.",
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "description": "The video status. downloading, uploaded and processing are in-flight; pending_credits is paused; completed, failed and download_failed are terminal.",
      +      "enum": [
      +        "downloading",
      +        "download_failed",
      +        "uploaded",
      +        "pending_credits",
      +        "processing",
      +        "completed",
      +        "failed"
      +      ],
      +      "type": "string"
      +    },
      +    "subscription_required": {
      +      "description": "Present and true when terminal payment failure requires a new subscription.",
      +      "type": "boolean"
      +    },
      +    "video": {
      +      "description": "The video id (hashid). Pass it as `video` to get_video_status, list_clips, get_render_status and render_clip.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "video",
      +    "status",
      +    "deduped"
      +  ],
      +  "type": "object"
      +}
  10. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the entire burden and does so thoroughly: asynchronous statuses, the paused `pending_credits` state, `free_taste` watermark behavior, dedupe-by-url+settings within 24h, retry-after-failure semantics, and billing consequences of trimming. It also enumerates non-retryable rejections (live stream, subscriber-only, age-restricted), which is exactly the behavioral context an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the async/polling contract are front-loaded, which is good, but the body sprawls into a dense multi-clause paragraph on trial-versus-plan billing whose nested conditionals are hard to parse at call time. The content_genre auto-detection sentence ('a Twitch or Kick past broadcast or clip in a game category, a YouTube video in the Gaming category, or a video whose title names GTA ...') is similarly convoluted. Much of the detail is genuinely useful, but it could be tightened without losing meaning.

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 an 8-parameter, asynchronous, credit-metered ingestion tool this is close to complete: it covers supported sources, async polling, failure modes, dedupe, and payment states. An output schema exists, so the description is not obligated to enumerate return fields, and it correctly focuses on what the agent must decide rather than restating the schema.

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 coverage is 100%, so the schema already documents all eight parameters and the baseline is 3. The description still adds real meaning beyond it: the free-taste constraint on `start_seconds`/`end_seconds` ('Do not pass ... unless the user names a part'), the billing rule that only the selected range is processed, and the fallback logic for `content_genre` when the agent has none. It stops short of explaining interaction between `max_clip_seconds` and `content_genre` automatic lengths, which is left slightly implicit.

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?

The opening sentence gives a specific verb ('Submit'), the resource ('a source video url'), the supported providers, and the outcome ('turn into viral clips'), plus what is returned (`id` and `status`). This clearly separates it from siblings such as add_footage_library_video, create_upload, and caption_video, which operate on already-ingested assets.

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?

It states explicitly when to poll (get_video_status with the returned id) and when not to (`Do not poll pending_credits`), what to do on `payment_required`, and when to consult get_account for `free_minutes`. It also names the alternative source for the `agent` parameter (list_agents) and gives a concrete recovery path for `download_failed` (resubmit with a range).

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