Skip to main content
Glama

media_import_url

Download videos from YouTube, Twitch, Instagram, Vimeo, X, Facebook and other URLs into a project Inbox for editing, optionally trimming by start and end seconds. Poll the job ID for progress.

Instructions

Download a video from a link (YouTube, Shorts, Twitch VODs and clips, Instagram, Vimeo, X, Facebook and many more) into the Inbox and import it, like media_import. Give start/end (seconds) to download only that part of a long video. The result includes the source (title, channel, chapters and, for YouTube, the most-replayed moments) and a jobId; downloads can take minutes, poll job_status.

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

Input Schema

NameRequiredDescriptionDefault
endNoDownload up to this second of the source
urlYes
waitNoSeconds to wait for the job before returning
startNoDownload from this second of the source
maxHeightNoHighest resolution to fetch
projectIdYes
cookiesFromBrowserNoUse this browser's sign-in (for private, unlisted, members-only or age-restricted videos)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose key traits: the operation is asynchronous, returns a jobId, may run for minutes, requires polling job_status, writes into the Inbox, and can capture authenticated content via a browser cookie source. It omits failure modes (unsupported URL, private video with no cookies) and whether partial downloads are re-fetchable, which keeps it below 5.

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?

Three front-loaded sentences: capability plus source list first, the slicing hint second, and the return shape with the async polling instruction last. The parenthetical platform list is long but operationally relevant and nothing is redundant.

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 7-parameter async ingestion tool with no output schema and no annotations, the description covers destination, delay behavior, polling, return payload (title, channel, chapters, replayed moments), and authentication. The main gap is that projectId remains unexplained and error behavior is unaddressed.

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 71%, so the schema already documents wait, maxHeight, cookiesFromBrowser, start and end. The description adds only framing for start/end ('download only that part of a long video') and does not clarify projectId or the interaction between wait and the async job. Baseline 3 is appropriate.

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 ('Download a video from a link ... into the Inbox and import it'), enumerates concrete supported sources (YouTube, Shorts, Twitch VODs, Instagram, Vimeo, X, Facebook), and anchors itself to the sibling media_import for the equivalent local-file flow. An agent can tell immediately this is the URL-based ingestion path.

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 clear operative context: use start/end for partial downloads of long videos, and poll job_status because downloads can take minutes. It does not explicitly state when to prefer this over media_import beyond the implicit URL-vs-local distinction, so it stops short of full when/when-not routing.

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