Skip to main content
Glama

Import a ChatGPT audio or video file

dub_import_file
Idempotent

Copies a selected ChatGPT audio or video attachment up to 128 MiB into the connected DubSync account. Ask permission to upload this file first and use the exact file handle supplied by ChatGPT. If either handle field is missing or the link is unsupported or expired, ask the user to reattach the file or upload it in DubSync. Import prepares the source without starting translation. If preparing is true, use the returned assetId and completionKey with dub_complete_upload. Supports known-length downloads from OpenAI-owned oaiusercontent.com hosts.

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": {
      "file": "<file>",
      "uploadConfirmed": "<uploadConfirmed>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "dub_import_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
idempotencyKeyYesA stable unique key for this operation. Reuse it with the exact same input after a timeout; never generate a new key to retry.
uploadConfirmedYesTrue only after the user authorizes copying this specific file into their DubSync account. This is not translation consent.

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / file / properties / file_name / description
      Added value: +"The original attachment filename, when ChatGPT supplies one."
    • addedInput schema / properties / file / properties / mime_type / description
      Added value: +"The attachment MIME type supplied by ChatGPT, for example audio/wav or video/mp4."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / data / additionalProperties
      Added value: +false
    • removedOutput schema / properties / data / description
      Removed value: -"The safe public API response, or resumable-upload status."
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "assetId": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "completionKey": {
      +    "type": "string"
      +  },
      +  "durationMs": {
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  "preparing": {
      +    "type": "boolean"
      +  },
      +  "uploaded": {
      +    "type": "boolean"
      +  }
      +}
    • addedOutput schema / properties / data / required
      Added value: +[
      +  "assetId"
      +]
    • addedOutput schema / properties / data / type
      Added value: +"object"
  2. Changed2 schema fields changed
    • changedInput schema / properties / file / properties / download_url / description
      Previous value: -"The temporary download URL supplied by ChatGPT; never an arbitrary website URL."New value: +"The exact temporary download URL supplied by ChatGPT for the selected attachment."
    • changedInput schema / properties / file / properties / file_id / description
      Previous value: -"The ChatGPT file identifier."New value: +"The exact ChatGPT file identifier supplied for the selected attachment."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description still adds real context beyond them: the 128 MiB size ceiling, the restriction to known-length downloads from OpenAI-owned oaiusercontent.com hosts, the authorization requirement, and the remediation path for expired links. It does not mention auth mechanics or failure/partial-import behavior beyond the handle-expiry case, which keeps it off a 5.

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?

Five sentences, all functional, with the core action and the size limit front-loaded. The ordering is logical (what it does, precondition, failure remediation, scope of effect, next step). Slightly dense in the middle but no filler sentences.

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?

For a write tool with an output schema, the description covers the size cap, source host restriction, authorization precondition, failure handling, and the handoff to dub_complete_upload including the returned assetId and completionKey. An agent has everything needed to call this correctly and to respond when it fails; return-value details are legitimately delegated to the output schema.

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 67% and the nested file object is well documented, so the baseline is already solid. The description adds meaning the schema doesn't: 'either handle field' clarifies that file_id and download_url are jointly required, 'exact file handle' warns against reconstructing the URL, and the permission/consent note sharpens uploadConfirmed beyond its schema wording.

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+resource with scope ('Copies a selected ChatGPT audio or video attachment up to 128 MiB into the connected DubSync account'). It also explicitly distinguishes itself from the translation flow ('Import prepares the source without starting translation') and names dub_complete_upload as the follow-up, so an agent can place it relative to siblings without opening schemas.

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 precondition ('Ask permission to upload this file first'), an input constraint ('use the exact file handle supplied by ChatGPT'), and a named fallback path when the handle is missing, unsupported, or expired ('ask the user to reattach the file or upload it in DubSync'). It also states what this tool does NOT do (no translation) and which tool to call next, covering both when-to-use and when-to-stop.

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