Skip to main content
Glama

import_media_from_url

Import an image, video, or audio file into a Sequencer workspace and return its mediaId. In ChatGPT Work, locate the uploaded file in the current session and pass its readable absolute path in file so ChatGPT can upload it. In other ChatGPT clients, pass the client-provided attachment in file. For hosted media, pass its reachable HTTP(S) URL in sourceUrl. For client-local files outside ChatGPT, use upload_media_base64 or the REST /v1/upload endpoint.

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": {
      "workspaceId": "<workspaceId>"
    },
    "name": "import_media_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoA file attached to this ChatGPT conversation. In ChatGPT Work, use the readable absolute path of the upload in the current session. ChatGPT supplies the file object to Sequencer.
fileNameNoOptional destination file name
folderIdNoOptional destination folder ID
mimeTypeNoOptional MIME type
sourceUrlNoReachable HTTP(S) URL. Omit when passing a ChatGPT attachment.
workspaceIdYesThe workspace ID
presentationNoUse timeline for internal production media without a standalone preview.standalone
idempotencyKeyNoStable upload key for retrying without duplicating media

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "A file attached to this ChatGPT conversation. In ChatGPT Work, use the readable absolute path of the upload in the current session. ChatGPT supplies the file object to Sequencer.",
      +  "properties": {
      +    "download_url": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "file_id": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "download_url",
      +    "file_id"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / fileName / description
      Previous value: -"Optional file name. If omitted, derived from the URL."New value: +"Optional destination file name"
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Stable upload/import key. Repeating the same bytes returns the original media without overwriting edits."New value: +"Stable upload key for retrying without duplicating media"
    • changedInput schema / properties / mimeType / description
      Previous value: -"Optional MIME type. If omitted, inferred from the file name or HTTP content-type."New value: +"Optional MIME type"
    • changedInput schema / properties / presentation / description
      Previous value: -"Use timeline when the import is internal production media for an edit and should not create a standalone chat preview."New value: +"Use timeline for internal production media without a standalone preview."
    • changedInput schema / properties / sourceUrl / description
      Previous value: -"Publicly reachable HTTP(S) URL to import"New value: +"Reachable HTTP(S) URL. Omit when passing a ChatGPT attachment."
    • changedInput schema / required
      Previous value: -[
      -  "workspaceId",
      -  "sourceUrl"
      -]New value: +[
      +  "workspaceId"
      +]
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Stable upload/import key. Repeating the same bytes returns the original media without overwriting edits.",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden. It does disclose that this is a mutating import that returns a mediaId, and it clarifies the ChatGPT attachment flow, but it says nothing about supported formats, file-size limits, required permissions, or side effects on existing media — gaps that matter for an upload tool with zero annotation coverage.

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?

The purpose is front-loaded in one sentence, then environment-specific branches follow in a compact order with no filler. It is dense with branching but each clause carries a distinct routing rule, so little is wasted; slightly more structure (e.g. separated conditionals) would aid scanning.

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 an 8-parameter tool with a nested file object and no output schema, the description covers the critical decisions: which parameter to use in which environment, which sibling to fall back on, and what the call returns. Remaining gaps are operational details (size/format limits, folder and presentation behavior) rather than anything that would cause a misfire.

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 description coverage is already 100%, so the baseline is 3; the description earns above that by explaining the mutual exclusivity of file and sourceUrl across client contexts ("Omit when passing a ChatGPT attachment" is reinforced as branching guidance) rather than just restating field text. It still does not explain presentation, folderId, or idempotency semantics beyond what the schema says.

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 first sentence names a specific verb and resource (import media into a Sequencer workspace), enumerates the accepted media types, and states the return value (mediaId). It also distinguishes itself from the base64/REST alternatives by name later in the text, so an agent can separate this sibling from upload_media_base64 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?

The description routes the agent by environment: ChatGPT Work uses a readable absolute path in the file parameter, other ChatGPT clients pass the client-provided attachment, hosted media uses sourceUrl, and client-local files outside ChatGPT should use upload_media_base64 or the REST /v1/upload endpoint instead. When-to-use and when-not-to-use (with a named alternative) are both explicit.

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.