Skip to main content
Glama

Import media from a URL

import_media_from_url

Downloads an image or video from a public URL into the workspace media library and returns a mediaId for publish_post and schedule_post. Takes a direct link to the file: JPEG, PNG, or WebP images up to 20 MiB, and MP4 or MOV videos up to 200 MiB. JPEG images up to 8 MiB are stored unchanged; other images are converted to JPEG with the long side reduced to 2,160 pixels or less. Web pages, including social media post pages, and links that require signing in are rejected. Larger videos go through create_media_upload. Each call stores a new copy, which is publicly accessible to anyone with its media URL. This does not publish a social media post.

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

Input Schema

NameRequiredDescriptionDefault
urlYesDirect link to a JPEG, PNG, or WebP image or an MP4 or MOV video file.
workspaceIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare not-read-only, open-world, non-idempotent, non-destructive; the description adds value beyond them by explaining that each call stores a new copy (consistent with idempotentHint=false), that the resulting media URL is publicly accessible to anyone, and the silent image conversion/downscaling behavior. It doesn't discuss rate limits, auth scope, or error shapes, so it stops short of the top score.

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?

Front-loaded with the action and return value, then constraints ordered by importance (format, size, conversion, rejection cases, alternative, side effects). Every sentence carries information, though the 20/200/8 MiB and 2,160-pixel detail makes it dense enough that a slightly tighter phrasing would help scanning.

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?

Although there is no output schema, the description names the return value (a mediaId) and its intended consumers. For an open-world fetch-and-store operation it covers input limits, transformation behavior, rejection conditions, an alternative tool, and the public-visibility side effect — nothing an agent needs to call it correctly is missing.

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 50%: the url parameter is documented in-schema, and the description enriches it with accepted formats and size ceilings. However, workspaceId is never mentioned in the description nor documented in the schema, leaving that parameter unelucidated — the baseline 3 reflects that the schema plus format details carry most of the load but one parameter remains opaque.

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 — downloads an image or video from a public URL into the workspace media library — and names the downstream consumers (publish_post, schedule_post) plus the sibling used for larger files (create_media_upload). An agent can distinguish this from create_media_upload without opening either 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?

Explicit when-to-use (JPEG/PNG/WebP up to 20 MiB, MP4/MOV up to 200 MiB) and when-not (web pages including social post pages, sign-in-required links), plus a named alternative route: 'Larger videos go through create_media_upload.' It also closes the common misread by stating it does not publish a post.

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