Skip to main content
Glama

register a media asset

assets_create
Destructive

Registers a public media URL or sync upload as a reusable asset, and imports YouTube, TikTok, Instagram, or Facebook video links into saved VIDEO assets for generation or dubbing workflows.

Instructions

Register a media file at a URL as a reusable sync. asset, or import a YouTube, TikTok, Instagram or Facebook video link into a saved VIDEO asset. Use it for a public https:// file, the url assets_create-upload-url returned after your PUT, or a social link. Not for a local file (call assets_create-upload-url first), finding an existing asset (assets_list) or renaming one (assets_update). Returns the asset (id, type, name, url, visibility, thumbnailUrl, projectId); pass its id as an asset input to generation tools, or as videoAssetId in dubbing_create when available.

Direct URL: the asset is saved at once and every call saves another one, so do not repeat a call that succeeded. A sync. upload must already hold the PUT bytes and fit the plan's size limit (422 otherwise).

Social link: send type=VIDEO and the projectId for this request; the asset is named after the video, and name, visibility and the metadata fields are ignored. 409 import_in_progress means it is still downloading: wait retryAfterMs (15 seconds if absent) and repeat the identical request, which reuses the running import, or pass wait: true. The importJobId in the 409 is not an asset id. On import_failed, import_not_enabled, import_unavailable or an import limit (daily or concurrent), explain the error and stop; do not restart the import. Import first, then estimate and confirm translation.

Projects: pass projectId only with projectIntent=explicit, when the user asked to work in that project, selected it in the interface, or it was just created for this request. A matching workflow/name or an already-open editor is never permission to modify it. Default new work to a new project.

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>",
      "type": "<type>"
    },
    "name": "assets_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesMedia URL: a public https:// file, the url (not the uploadUrl) that assets_create-upload-url returned once the PUT finished, or a YouTube, TikTok, Instagram or Facebook video link.
nameNoDisplay name for the asset. Not used for a social link, which is named after the video.
sizeNoFile size in bytes, when known. For a sync. upload the stored file's measured size is used instead.
typeYesMedia type: VIDEO, AUDIO or IMAGE. Send VIDEO for a social video link; its import always saves a VIDEO asset.
waitNoSocial link only: the server repeats the identical request every retryAfterMs (15 seconds if absent) until an attempt returns the saved asset or about 50 seconds pass. If no attempt got the asset, even when the import finished just after the last attempt, the call returns the 409 import_in_progress; call again with wait: true.
widthNoVideo or image width in pixels, when known.
formatNoFile format or extension, such as mp4 or wav, when known.
heightNoVideo or image height in pixels, when known.
inputTypeNoHow the media was produced, such as UPLOAD or URL. Usually omitted.
projectIdNoProject to attach the asset to; send it with projectIntent=explicit. Returns 422 if it is not a project you can use in this organization.
visibilityNoUSER (default) or ORGANIZATION, which shares the asset with everyone in the organization. A USER asset is still visible across the organization when attached to a project shared with the organization. Not used for a social link.
thumbnailUrlNoOptional preview image URL for the asset.
contentSha256NoOptional lowercase hex SHA-256 digest of the file's bytes.
projectIntentNoRequired with projectId. Set only for an explicit user project selection/update, or the new project just created for this request. Never infer intent from a matching project name, workflow name or active editor.
idempotencyKeyNoPersist before creation. Reuse this same key and identical inputs only to reconcile uncertain admission; do not create a new key for a retry.
durationSecondsNoMedia length in seconds, when known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.37
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Persist before creation. Reuse this same key and identical inputs only to reconcile uncertain admission; do not create a new key for a retry.",
      +  "pattern": "^[A-Za-z0-9._~-]{1,128}$",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.3.34
    • changedInput schema / properties / inputType / enum
      Previous value: -[
      -  "UPLOAD",
      -  "URL",
      -  "RECORD",
      -  "TTS",
      -  "EXTRACT",
      -  "DUB",
      -  "DUB_SOURCE",
      -  "PLATFORM_IMPORT",
      -  "DIALOGUE_EDIT",
      -  "PLUGIN_PREMIERE_FILE",
      -  "PLUGIN_PREMIERE_TIMELINE_SELECTION",
      -  "PLUGIN_RESOLVE_FILE",
      -  "PLUGIN_RESOLVE_TIMELINE_SELECTION"
      -]New value: +[
      +  "UPLOAD",
      +  "URL",
      +  "RECORD",
      +  "TTS",
      +  "EXTRACT",
      +  "DUB",
      +  "DUB_SOURCE",
      +  "PLATFORM_IMPORT",
      +  "DIALOGUE_EDIT",
      +  "PLUGIN_PREMIERE_FILE",
      +  "PLUGIN_PREMIERE_TIMELINE_SELECTION",
      +  "PLUGIN_RESOLVE_FILE",
      +  "PLUGIN_RESOLVE_TIMELINE_SELECTION",
      +  "PLUGIN_FCP_FILE",
      +  "PLUGIN_FCP_TIMELINE_SELECTION"
      +]
  3. Changed8 schema fields changedv0.2.4
    • changedInput schema / properties / contentSha256 / description
      Previous value: -"Optional SHA-256 hex digest of the file."New value: +"Optional lowercase hex SHA-256 digest of the file's bytes."
    • changedInput schema / properties / name / description
      Previous value: -"Display name for the asset."New value: +"Display name for the asset. Not used for a social link, which is named after the video."
    • changedInput schema / properties / projectId / description
      Previous value: -"Project to attach the asset to, from projects_create or projects_list."New value: +"Project to attach the asset to; send it with projectIntent=explicit. Returns 422 if it is not a project you can use in this organization."
    • changedInput schema / properties / size / description
      Previous value: -"File size in bytes, when known."New value: +"File size in bytes, when known. For a sync. upload the stored file's measured size is used instead."
    • changedInput schema / properties / type / description
      Previous value: -"Media type: VIDEO, AUDIO or IMAGE."New value: +"Media type: VIDEO, AUDIO or IMAGE. Send VIDEO for a social video link; its import always saves a VIDEO asset."
    • changedInput schema / properties / url / description
      Previous value: -"Media URL: the url assets_create-upload-url returned, a public https:// file, or a YouTube, TikTok, Instagram or Facebook video link."New value: +"Media URL: a public https:// file, the url (not the uploadUrl) that assets_create-upload-url returned once the PUT finished, or a YouTube, TikTok, Instagram or Facebook video link."
    • changedInput schema / properties / visibility / description
      Previous value: -"USER keeps it private to you; ORGANIZATION shares it with your team."New value: +"USER (default) or ORGANIZATION, which shares the asset with everyone in the organization. A USER asset is still visible across the organization when attached to a project shared with the organization. Not used for a social link."
    • changedInput schema / properties / wait / description
      Previous value: -"Wait on the server until the job finishes or about 50 seconds pass, then return its latest state. If it is still running, call again with wait: true instead of sleeping."New value: +"Social link only: the server repeats the identical request every retryAfterMs (15 seconds if absent) until an attempt returns the saved asset or about 50 seconds pass. If no attempt got the asset, even when the import finished just after the last attempt, the call returns the 409 import_in_progress; call again with wait: true."
  4. Changed13 schema fields changed
    • addedInput schema / properties / contentSha256 / description
      Added value: +"Optional SHA-256 hex digest of the file."
    • addedInput schema / properties / durationSeconds / description
      Added value: +"Media length in seconds, when known."
    • addedInput schema / properties / format / description
      Added value: +"File format or extension, such as mp4 or wav, when known."
    • addedInput schema / properties / height / description
      Added value: +"Video or image height in pixels, when known."
    • addedInput schema / properties / inputType / description
      Added value: +"How the media was produced, such as UPLOAD or URL. Usually omitted."
    • addedInput schema / properties / name / description
      Added value: +"Display name for the asset."
    • addedInput schema / properties / projectId / description
      Added value: +"Project to attach the asset to, from projects_create or projects_list."
    • addedInput schema / properties / size / description
      Added value: +"File size in bytes, when known."
    • addedInput schema / properties / thumbnailUrl / description
      Added value: +"Optional preview image URL for the asset."
    • addedInput schema / properties / type / description
      Added value: +"Media type: VIDEO, AUDIO or IMAGE."
    • addedInput schema / properties / url / description
      Added value: +"Media URL: the url assets_create-upload-url returned, a public https:// file, or a YouTube, TikTok, Instagram or Facebook video link."
    • addedInput schema / properties / visibility / description
      Added value: +"USER keeps it private to you; ORGANIZATION shares it with your team."
    • addedInput schema / properties / width / description
      Added value: +"Video or image width in pixels, when known."
  5. Changed7 schema fields changedv0.1.5
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / contentSha256
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / inputType / enum
      Previous value: -[
      -  "UPLOAD",
      -  "URL",
      -  "RECORD",
      -  "TTS",
      -  "EXTRACT",
      -  "DUB",
      -  "DUB_SOURCE",
      -  "PLATFORM_IMPORT",
      -  "PLUGIN_PREMIERE_FILE",
      -  "PLUGIN_PREMIERE_TIMELINE_SELECTION",
      -  "PLUGIN_RESOLVE_FILE",
      -  "PLUGIN_RESOLVE_TIMELINE_SELECTION"
      -]New value: +[
      +  "UPLOAD",
      +  "URL",
      +  "RECORD",
      +  "TTS",
      +  "EXTRACT",
      +  "DUB",
      +  "DUB_SOURCE",
      +  "PLATFORM_IMPORT",
      +  "DIALOGUE_EDIT",
      +  "PLUGIN_PREMIERE_FILE",
      +  "PLUGIN_PREMIERE_TIMELINE_SELECTION",
      +  "PLUGIN_RESOLVE_FILE",
      +  "PLUGIN_RESOLVE_TIMELINE_SELECTION"
      +]
    • addedInput schema / properties / projectIntent
      Added value: +{
      +  "const": "explicit",
      +  "description": "Required with projectId. Set only for an explicit user project selection/update, or the new project just created for this request. Never infer intent from a matching project name, workflow name or active editor.",
      +  "type": "string"
      +}
    • removedInput schema / properties / thumbnailUrl / type
      Removed value: -"string"
    • addedInput schema / properties / wait
      Added value: +{
      +  "description": "Wait on the server until the job finishes or about 50 seconds pass, then return its latest state. If it is still running, call again with wait: true instead of sleeping.",
      +  "type": "boolean"
      +}
  6. First observedv0.1.4

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare a non-idempotent, destructive, open-world write; the description is consistent and adds substantial context: repeated direct-URL calls each create another asset, 409 import_in_progress semantics with retryAfterMs and wait:true, the fact that importJobId is not an asset id, and the list of terminal import errors after which the agent should stop rather than restart.

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?

Long, but front-loaded with purpose and then organized into labeled sections (Direct URL, Social link, Projects) that map to distinct call modes. Some redundancy remains, e.g. the wait/retryAfterMs explanation is restated from the schema, but the density is justified by 16 parameters and three behaviors.

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 enumerates the returned fields (id, type, name, url, visibility, thumbnailUrl, projectId) and tells the agent where to reuse the id (asset inputs to generation tools, videoAssetId in dubbing_create). Error handling, retry policy and project-permission failure are all covered for a complex mutating tool.

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, but the description adds cross-parameter conditional logic the schema cannot express: name, visibility and metadata fields are ignored on a social link, type must be VIDEO for social links, and projectId is only valid paired with projectIntent=explicit. It does not otherwise enrich individual field formats, relying on the schema for that.

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 ('register a media file at a URL as a reusable asset') and immediately distinguishes the two operating modes (direct URL vs. social-video import). It also names the siblings it is not: assets_create-upload-url for local files, assets_list for finding, assets_update for renaming.

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 and when-not-to-use rules are given, including the prerequisite that assets_create-upload-url must have completed its PUT before this call. Alternatives are named with the condition that selects them, and the project-scoping rules (projectId only with projectIntent=explicit) are spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.