Skip to main content
Glama

translate audio for preview

translation-previews_create
Destructive

Starts a paid job that translates a saved audio asset's speech into another language, producing translated audio to review before a separate lipsync step.

Instructions

Start one paid job that translates a saved audio asset's speech into another language, producing translated audio the user can review before a separate lipsync. Use it when the user wants to hear the translation first or place the audio on a timeline; for a finished dubbed video in one step use dubbing_create, and for speech from a script use speech-previews_create. Confirm the source audio, target language and the translation-previews_estimate quote with the user first. It needs a project: for new work call projects_create (defaultWorkflow translate_and_dub) and pass that id with projectIntent=explicit; use an existing project only when the user explicitly selected it, never because of a matching name or open editor. Persist one UUID idempotencyKey before calling and, after an uncertain response, resend the identical request with it; a new key bills again. Returns the job (id, status, outputMediaUrl and outputAudioAssetId once done, error, recoveryRequired); follow it with translation-previews_get wait: true, or jobs_wait kind translation_preview when available. Once COMPLETED, use outputAudioAssetId directly as the audio asset for the separate lipsync step; only when it is null or missing, register outputMediaUrl with assets_create (type=AUDIO) or pass it as a clip audioUrl. Never translate again because attaching the output failed or recoveryRequired is true. Lipsyncing the translated audio is a separate, explicitly approved lipsync_create or lipsync_create-timeline call, not dubbing_create.

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": {
      "projectId": "<projectId>",
      "audioAssetId": "<audioAssetId>",
      "targetLang": "<targetLang>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "translation-previews_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesProject for the job: one just created with projects_create for this request, or one the user explicitly selected; pass projectIntent=explicit with it. Use the same id for translation-previews_get.
sourceLangNoOptional and usually omitted: the source language is detected (sent as auto).
targetLangYesLanguage code to translate into, from dubbing_get-options targetLanguages (for example es or pt-BR).
audioAssetIdYesSaved AUDIO asset to translate, such as one from assets_create (type=AUDIO), assets_list or audio-trims_create; the same asset you quoted with translation-previews_estimate.
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.
idempotencyKeyYesA new UUID saved before the call. Reuse it with identical input only to recover an uncertain response.
organizationIdNoRun only this call in another of the user’s Sync organizations, by id from organizations_list, when the user asks for it (for example “generate this in the Acme org”). The session keeps its organization; reads of the ids this call returns stay in this organization. Omit to use the session’s organization.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.31
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "cloningStrength": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "createdAt": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "code": {
      -                "type": "string"
      -              },
      -              "message": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "code",
      -              "message"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "finishedAt": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "organization": {
      -        "additionalProperties": false,
      -        "description": "The Sync organization this call ran in.",
      -        "properties": {
      -          "id": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      "outputDurationSec": {
      -        "anyOf": [
      -          {
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "outputMediaUrl": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "projectId": {
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "recoveryRequired": {
      -        "type": "boolean"
      -      },
      -      "sourceAudioUrl": {
      -        "type": "string"
      -      },
      -      "sourceLang": {
      -        "type": "string"
      -      },
      -      "startedAt": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "status": {
      -        "enum": [
      -          "PENDING",
      -          "PROCESSING",
      -          "COMPLETING",
      -          "COMPLETED",
      -          "FAILED"
      -        ],
      -        "type": "string"
      -      },
      -      "targetLang": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "projectId",
      -      "status",
      -      "sourceLang",
      -      "targetLang",
      -      "outputMediaUrl",
      -      "outputDurationSec",
      -      "error",
      -      "recoveryRequired"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "generationId": {
      -            "type": "string"
      -          },
      -          "importJobId": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "importStatus": {
      -            "enum": [
      -              "queued",
      -              "downloading",
      -              "processing",
      -              "completed",
      -              "failed"
      -            ],
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "progress": {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "retryAfterMs": {
      -            "type": "number"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          },
      -          "status": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "message"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "cloningStrength": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "createdAt": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "code": {
      +                "type": "string"
      +              },
      +              "message": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "code",
      +              "message"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "finishedAt": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "organization": {
      +        "additionalProperties": false,
      +        "description": "The Sync organization this call ran in.",
      +        "properties": {
      +          "id": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "outputAudioAssetId": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "outputDurationSec": {
      +        "anyOf": [
      +          {
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "outputMediaUrl": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "projectId": {
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "recoveryRequired": {
      +        "type": "boolean"
      +      },
      +      "sourceAudioUrl": {
      +        "type": "string"
      +      },
      +      "sourceLang": {
      +        "type": "string"
      +      },
      +      "startedAt": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "enum": [
      +          "PENDING",
      +          "PROCESSING",
      +          "COMPLETING",
      +          "COMPLETED",
      +          "FAILED"
      +        ],
      +        "type": "string"
      +      },
      +      "targetLang": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "projectId",
      +      "status",
      +      "sourceLang",
      +      "targetLang",
      +      "outputMediaUrl",
      +      "outputDurationSec",
      +      "error",
      +      "recoveryRequired"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "generationId": {
      +            "type": "string"
      +          },
      +          "importJobId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "importStatus": {
      +            "enum": [
      +              "queued",
      +              "downloading",
      +              "processing",
      +              "completed",
      +              "failed"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "progress": {
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "retryAfterMs": {
      +            "type": "number"
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "message"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed4 schema fields changedv0.2.4
    • changedInput schema / properties / audioAssetId / description
      Previous value: -"Saved AUDIO asset to translate, such as an audio-trims_create result."New value: +"Saved AUDIO asset to translate, such as one from assets_create (type=AUDIO), assets_list or audio-trims_create; the same asset you quoted with translation-previews_estimate."
    • changedInput schema / properties / projectId / description
      Previous value: -"Project the translation belongs to, from projects_create or projects_list."New value: +"Project for the job: one just created with projects_create for this request, or one the user explicitly selected; pass projectIntent=explicit with it. Use the same id for translation-previews_get."
    • changedInput schema / properties / sourceLang / description
      Previous value: -"Optional; the source language is detected."New value: +"Optional and usually omitted: the source language is detected (sent as auto)."
    • changedInput schema / properties / targetLang / description
      Previous value: -"Target language code from dubbing_get-options."New value: +"Language code to translate into, from dubbing_get-options targetLanguages (for example es or pt-BR)."
  3. Changed4 schema fields changed
    • addedInput schema / properties / audioAssetId / description
      Added value: +"Saved AUDIO asset to translate, such as an audio-trims_create result."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"A new UUID saved before the call. Reuse it with identical input only to recover an uncertain response."
    • addedInput schema / properties / projectId / description
      Added value: +"Project the translation belongs to, from projects_create or projects_list."
    • addedInput schema / properties / targetLang / description
      Added value: +"Target language code from dubbing_get-options."
  4. Addedv0.1.5

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (not read-only, destructive, open-world, non-idempotent); the description adds what the annotations cannot: the job is paid, a new idempotency key bills again, retries must resend the identical request, recoveryRequired must not trigger a re-translate, and the job must be polled via translation-previews_get wait:true or jobs_wait. That is substantive behavioral context beyond the structured fields, and nothing contradicts destructiveHint=true.

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?

Purpose and sibling routing are front-loaded, and nearly every clause is load-bearing (cost, project selection, idempotency, follow-up, downstream asset use). It is a single dense ~200-word paragraph with semicolon chains and a mild repeat of dubbing_create, so structure and scannability could be tighter.

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 paid, destructive, multi-step job with 7 parameters, the description covers the whole lifecycle: prerequisites and confirmation, project setup, idempotent submission, follow-up polling, and how to consume outputAudioAssetId or fall back to outputMediaUrl. An output schema exists, so the enumerated return fields are extra but they are what enables the correct next step.

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 meaning not in the schema: the billing consequence of minting a new idempotencyKey and the requirement to persist it before calling, plus the rule that projectId must pair with projectIntent=explicit and an explicit user selection. Some of this duplicates schema text (sourceLang auto-detection, reusing the key on an uncertain response), which keeps it from a 5.

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?

"Start one paid job that translates a saved audio asset's speech into another language, producing translated audio the user can review before a separate lipsync" is a specific verb+resource+output with scope. It explicitly distinguishes itself from dubbing_create (one-step dubbed video) and speech-previews_create (script input), so an agent can route without opening either sibling 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 positive triggers (user wants to hear the translation first, or place audio on a timeline), named alternatives with their selecting conditions, and preconditions (confirm source audio, target language and the estimate quote; create/select a project with projectIntent=explicit). It also states exclusions: do not re-translate after an attach failure or recoveryRequired=true, and lipsyncing requires a separate approved lipsync call rather than dubbing_create.

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