Skip to main content
Glama

Import media from a URL

import_asset_url

Import media from a direct HTTPS URL, or the video of a public post the person linked: a YouTube video or short, a TikTok video, an Instagram post or reel (name it .mp4; its video becomes the person's footage to edit, and startSeconds/endSeconds take just a part of a long video). Supply the filename including extension. Returns an Asset ID. A placeable asset comes with its facts, a READY line and the use line. If the result says NOT PLACEABLE YET, call wait_for_asset with the Asset ID, as its NEXT line says, before you use it. A data file (.json, .geojson, .topojson, .csv, .tsv or .svg, up to 2 MB) comes in too, for a component to read with : a public dataset by its raw link, such as world country shapes from https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json. So does a font file (.ttf, .otf, .woff or .woff2, up to 10 MB): the result names its family for the font attribute and fontFamily (guide/fonts).

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>",
      "fileName": "<fileName>",
      "startSeconds": "<startSeconds>",
      "endSeconds": "<endSeconds>",
      "projectId": "<projectId>"
    },
    "name": "import_asset_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
fileNameYes
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.
endSecondsYesVideo range end in source seconds. Both bounds are required for a range; the rest is discarded. Imported video starts at zero. Cannot combine with keepOriginal.
startSecondsYesVideo range start in source seconds. Use null with endSeconds null for the whole file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, openWorld=true, destructive=false), the description discloses the return contract (Asset ID, facts, READY line, use line), the async follow-up path, size ceilings (2 MB data, 10 MB font), accepted extensions, and the fact that imported video is rebased to zero. That is exactly the operational detail annotations cannot convey for a non-idempotent write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense with useful facts and the purpose is front-loaded, but it is delivered as one sprawling paragraph with nested parentheticals ("name it .mp4; its video becomes...") that forces re-reading. Splitting source types and the async fallback into separate, ordered sentences would earn the same information at much lower parsing cost.

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 five-parameter, no-output-schema import tool, the definition covers source types, limits, return shape, and the wait_for_asset escalation, which is nearly everything an agent needs. It does not explain idempotency or what a duplicate import does, a real gap given idempotentHint=false.

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?

With 60% schema coverage, the description carries real weight: it tells the agent fileName must include the extension, that an Instagram reel must be named .mp4, and that startSeconds/endSeconds extract just part of a long video. It adds nothing about projectId, which the schema already documents, leaving that parameter reliant on schema text.

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?

The description opens with a specific verb+resource ("Import media from a direct HTTPS URL") and immediately enumerates the concrete source classes it accepts (YouTube, TikTok, Instagram, data files, fonts), which separates it from add_from_library and import_stock without requiring the sibling schemas. An agent can tell exactly what this tool ingests.

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?

Guidance is concrete and conditional: use it for a public post link or raw data link, and if the result reads NOT PLACEABLE YET, call wait_for_asset before using the asset. What is missing is any explicit when-not statement or contrast with library/stock import siblings, so the agent must infer exclusion by source type rather than being told.

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.