Skip to main content
Glama

Fetch media from a post link

fetch_media
Read-only

Get direct download links and metadata for one public post, reel, story, video or pin from Instagram, TikTok, Pinterest, Facebook, X (Twitter), Rutube or Likee. Returns type, download_url, thumbnail_url, width, height, duration and caption; an album returns its files in items. Credits per call: Instagram stories and highlights 5, Instagram 1.5, TikTok 1.5, Pinterest 1.5, Facebook 1.5, X (Twitter) 1.5, Rutube 3, Likee 3. A failed call or an unsupported link costs 0.1. A YouTube link is refused here for free: use youtube_info or youtube_download.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe link as copied from the app or the browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses per-call credit costs by platform, the 0.1 charge for failed or unsupported links, album behavior (files returned in items), and the free YouTube refusal. That is exactly the billing and failure behavior an agent needs before invoking an open-world fetch.

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?

Purpose, return shape, cost, and the YouTube redirect are all front-loaded in a single dense paragraph with no filler. The credit enumeration is long but decision-relevant; a short bulleted cost list would scan faster than the inline prose.

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?

There is no output schema, so the description carries the return contract itself and does so precisely (type, download_url, thumbnail_url, width, height, duration, caption, items for albums). Combined with cost, failure pricing, and the platform exclusion, nothing needed to call this correctly is missing.

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% for the single url parameter, so the baseline is 3. The description adds meaning the schema does not: the URL must point to one public post on one of the listed platforms, and it implicitly rules out private or YouTube links, which sharpens what is a valid input.

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 ("Get direct download links and metadata for one public post, reel, story, video or pin") and enumerates the eight supported platforms. It also distinguishes itself from youtube_info/youtube_download, so an agent can route correctly without opening any schema.

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?

Explicitly names the excluded case ("A YouTube link is refused here for free") and points to the two correct alternatives, youtube_info and youtube_download. The per-platform credit costs further support the use/don't-use decision by making the price of each route visible.

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.