Skip to main content
Glama

URL Extractor: Any Supported Page to JSON · 20 Sites, One Input

Video Downloader

download_video
Read-onlyIdempotent

Direct download link for public videos from YouTube, TikTok (no watermark), Instagram Reels, X/Twitter, Facebook, Threads, Reddit and 1,000+ sites: MP4 link, resolution, file size, duration, title, author, views and likes. Or audio only. Use when you need the video file itself (direct link). Returns {items: [...]} with one object per result, for example: {"input":"https://x.com/historyinmemes/status/1790637656616943991","status":"ok","platform":"x","title":"Historic Vids - One of the most intense moments in history","author":"Historic Vids","durationSeconds":15.488,"viewCount":34497093,"availableQualities":[720,360,270],"mode":"link","downloadUrl":"https://video.twimg.com/...mp4","streamUrl":"https://pom-data-api.pomlabs.workers.dev/s/eyJ1Ijoi..." Cost: pay per result (prices on the store page where you subscribed), or US$ 0.01 per call with x402 (1 link). Read-only: it only reads public data.

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": "download_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoEnd time of the part, in seconds or mm:ss.
fitNoWith aspect or width+height: pad = bars (default); crop = fill, cutting the edges; blur = over a blurred copy of itself; stretch = distort.
fpsNoNew frame rate, 1-120 (e.g. 24, 30, 60).
urlYesPublic video link, or a bare Instagram shortcode (DWocNOhgmgg). Comma-separate several (max 3 per call).
flipNoMirror the picture.
modeNolink = direct download link (default); info = every resolution and format with size and codec, no download; file = we download, convert or cut it and return a stable fileUrl (needed for format, audio_format, audio_bitrate, start/end, subtitles and transcript; chosen by itself when you use them).
audioNovideo = with sound (default); none = muted; only = audio only.
codecNoVideo codec of the processed file: h264 (default, plays everywhere), h265 (about half the size) or vp9 (webm).
proxyNoYour own http(s) or socks5 proxy URL, tried first.
speedNoPlayback speed 0.25-4 (1.5 = 50% faster); the sound keeps its pitch.
startNoOnly a part of the video: start time in seconds or mm:ss (e.g. 1:30).
widthNoOutput width in px (16-7680). With height, the video is fitted to that box (fit); alone, the height follows.
aspectNoReframe to 9:16 (Reels, TikTok, Shorts), 1:1, 4:5, 16:9 or any W:H between 1:5 and 5:1.
formatNoVideo container of the saved file (default mp4).
heightNoOutput height in px (16-7680). With width, the video is fitted to that box (fit); alone, the width follows.
max_mbNoSkip files bigger than this many MB (1-2000, default 1000), not charged.
regionNoTwo-letter country code to fetch a video only available in that country, through a home IP there (billed per MB like residential).
rotateNoRotate clockwise.
bitrateNoExact video bitrate in kbps (50-50000). Use this or target_mb.
cookiesNoNetscape cookies.txt of your own YouTube session, for age-restricted or members-only videos (send it in a POST body).
qualityNoBest resolution up to this one (default 1080; short side, so 1080 is also 1080x1920 vertical). smallest = the lightest file.
compressNoSmaller file at some quality cost (ignored with target_mb or bitrate).
filenameNoParts of the saved file name after the platform and video id, comma-separated: title, uploader, timestamp.
list_maxNoA YouTube playlist or channel, a TikTok profile or a Vimeo showcase becomes its latest videos, up to this number (1-500, default 20).
normalizeNoEven out the loudness to -16 LUFS.
pad_colorNoBar color with fit=pad: a name (black, white) or hex (#ff0000).
sub_langsNoSubtitle language codes, comma-separated (up to 5, e.g. en,pt). Empty = the video language.
subtitlesNoAlso save the subtitles as an SRT file (uploaded captions first, then automatic ones). Free.
target_mbNoRe-encode to fit this file size in MB (e.g. 8 for Discord, 16 for WhatsApp). Each item says processing.targetSizeMet.
audio_langNoAudio track language for videos with dubbed tracks (YouTube), e.g. es, pt. Without that track the original comes, with audioLanguageNote.
compatibleNoPrefer H.264 + AAC in .mp4, which plays everywhere (default true; false keeps VP9/AV1 when the site serves them).
list_startNoFor a playlist, channel or profile: start at video N (page 2 of 20 = 21). Default 1.
streamableNoFragmented MP4 a player can start while the bytes still arrive (alone: no re-encode).
sub_formatNoFormat of the saved subtitle files (default srt; json = start, end, text per line).
transcriptNoTranscribe the speech of the saved file (Whisper), with timestamps.
max_minutesNoSkip videos longer than this many minutes (with start/end, the part counts), not charged.
residentialNofallback = residential IPs when a site refuses our servers (default disabled).
audio_formatNoAudio file format with audio=only (default m4a, the original AAC when the site has it).
audio_bitrateNoAudio bitrate in kbps (mp3 default 192; also re-encodes m4a).
youtube_sourceNoYouTube: auto = fast partner source first (default); direct = only our own extraction.
transcript_langNoLanguage code of the speech (en, pt, es...). Empty = detected.
transcript_modeNofallback = use the video's own subtitles when it has them, Whisper only when it does not.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the 'Read-only: it only reads public data' sentence is largely redundant. The genuinely additive disclosures are the pricing model (pay per result, or US$0.01 per call with x402 for one link) and the concrete return payload example, but error handling, failure modes and the max-3-URLs-per-call limit (left to the schema) are unaddressed.

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?

Capability and platform coverage are front-loaded, followed by the return shape and cost, which is a sensible order. The inline JSON example is long and the closing read-only sentence duplicates the annotations, but neither is enough to call the definition bloated given the tool's breadth.

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 42-parameter tool with no output schema, the definition supplies the one thing that matters most — a concrete response example showing items, status, platform, availableQualities, downloadUrl and streamUrl — plus cost expectations. What remains thin is how the processing parameters interact with mode=file, though the schema descriptions cover that ground.

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 100% across all 42 parameters, so the schema already carries detailed semantics for mode, quality, fit, format, transcripts and the rest. The description adds essentially nothing parameter-level beyond mentioning 'audio only' and one link per paid call, which is the correct baseline-3 outcome when structured fields do the work.

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 concrete verb and resource ('direct download link for public videos'), enumerates supported platforms, and specifies exactly what is returned (MP4 link, resolution, file size, duration, title, author, stats). It distinguishes its role via 'Use when you need the video file itself (direct link)', which implicitly separates it from metadata-only extraction, but it never names a sibling tool to make the split unambiguous.

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 a clear positive trigger ('Use when you need the video file itself') and notes the audio-only variant and the info/file modes. It does not state when to prefer an alternative tool, nor does it name extract_url_data or transcribe_social_video, so the routing decision still depends on the agent already knowing those 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.