Skip to main content
Glama

Import media from a URL

upload_media_from_url

Copy a file from a public URL into the media library. Returns the new asset id, kind, size and URL. Use for migration: pull from a Drive share, S3, an old CMS export, etc. Max 500 MB; use mint_upload_url for larger. The asset is created at the workspace root, so a key limited to one location is refused. To show a live web page rather than copy a file, use create_web_link. Requires media.create.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublicly fetchable http(s) URL.
nameYesDisplay name for the asset.
tagsNoTags to set on the new asset, e.g. ["menu", "spring"].
folderIdNoLibrary folder to file it in (id from list_items kind media_folders); omit for the library root.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / folderId / description
      Added value: +"Library folder to file it in (id from list_items kind media_folders); omit for the library root."
    • addedInput schema / properties / tags / description
      Added value: +"Tags to set on the new asset, e.g. [\"menu\", \"spring\"]."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the generic write/open-world/no-destroy profile; the description adds the operational specifics an agent actually needs: the 500 MB ceiling, that the asset lands at the workspace root and location-scoped keys are refused, and the required media.create permission. That is exactly the beyond-annotation context this dimension rewards.

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?

Five compact sentences, each with a distinct job: what it does, what it returns, when to use it, its limit plus the alternative, and its constraints. The purpose and scope are front-loaded with zero filler.

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?

With an output schema present, the description need not explain return values in depth, and it still names them briefly. Size limit, permission requirement, placement rule, and alternative tools cover everything an agent needs to call this correctly and to avoid mis-calling siblings.

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%, so the schema already documents url, name, tags and folderId, including the root-filing default. The description reinforces the root-placement behavior but adds no syntax, format, or default detail the schema lacks. Baseline 3 applies.

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 ('Copy a file from a public URL into the media library'), and explicitly contrasts itself with create_web_link ('show a live web page rather than copy a file') and mint_upload_url. An agent can distinguish it from every near sibling without opening a 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?

Gives a concrete use case ('migration: pull from a Drive share, S3, an old CMS export'), an explicit size boundary with the alternative for exceeding it (500 MB cap, use mint_upload_url for larger), and a routing rule away from create_web_link. When-to-use, when-not, and alternatives are all present.

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