Skip to main content
Glama

Add media from a public URL

media_from_url

Attach an image or video that is already on the public web. We download it, copy it into our storage and give you a media id you can pass to publish. One step, no upload needed. https only. Google Drive and Dropbox share links do not work: they return an HTML preview page, not the file. Use a direct file URL that ends in the file itself. Accepted formats (read from the bytes, not the headers): image/jpeg, image/png, image/gif, image/webp, video/mp4, video/quicktime. Each channel then checks what it takes when you publish. If you can see the image, write altText describing it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublic https URL of the image or video file itself.
altTextNoWhat the image shows, for people using screen readers. Applied to carousel items.
aiGeneratedNotrue when the image or video was generated or substantially changed with AI. Naver Blog photos get its AI-use label; Instagram, YouTube and TikTok get their AI declaration turned on unless you set it to false. Leave it out when unsure.
workspaceIdNoWhich workspace this is for. Only needed when the account has more than one — the error tells you the ids when it matters. Leave it out if it is already decided; do not ask the person again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / aiGenerated / description
      Previous value: -"true when the image or video was generated or substantially changed with AI. Naver Blog photos get its AI usage label (AI 활용 설정); Instagram, YouTube and TikTok get their AI declaration turned on unless you set it to false. Leave it out when unsure."New value: +"true when the image or video was generated or substantially changed with AI. Naver Blog photos get its AI-use label; Instagram, YouTube and TikTok get their AI declaration turned on unless you set it to false. Leave it out when unsure."
  2. Changed1 schema field changed
    • addedInput schema / properties / aiGenerated
      Added value: +{
      +  "description": "true when the image or video was generated or substantially changed with AI. Naver Blog photos get its AI usage label (AI 활용 설정); Instagram, YouTube and TikTok get their AI declaration turned on unless you set it to false. Leave it out when unsure.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "Which workspace this is for. Only needed when the account has more than one — the error tells you the ids when it matters. Leave it out if it is already decided; do not ask the person again.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With annotations covering the safety profile (readOnly=false, destructive=false, openWorld=true), the description still adds substantial behavior: the server downloads and re-hosts the file, format is validated from bytes not headers, the returned media id is meant to be passed to publish, and each channel applies its own format check at publish time.

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?

Front-loaded with the action and the payoff ('attach... we give you a media id you can pass to publish'), then constraints, then formats, then the altText cue. No filler sentences; every clause carries actionable information.

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?

No output schema exists, yet the description explains what comes back (a media id for publish) and how formats/channels interact. For a 4-param, one-required tool with a single remote input, nothing an agent needs to invoke it 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%, so the baseline is 3. The description adds real value beyond it: url must be a direct file URL ending in the file itself, accepted MIME list, and the cue that altText should be written whenever the image is visible. It does not elaborate on aiGenerated or workspaceId beyond the schema.

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 precise verb+resource: attach already-hosted media by URL, with the mechanism spelled out (we download it, copy it into storage, return a media id). It clearly positions itself against the upload-style siblings (media_presign/media_upload_link) by saying 'no upload needed'.

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 strong usage conditions and exclusions: https only, Google Drive/Dropbox share links return HTML and won't work, use a direct file URL. It does not name a specific sibling tool to use instead when the URL is a local/private asset, so it stops short of explicit alternative routing.

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