Skip to main content
Glama

estimate translated audio preview

translation-previews_estimate
Read-onlyIdempotent

Quote cost and credits for translating a saved audio asset into a preview before creating the job. Read-only and free; use matching project, asset, and organization IDs for accurate billing.

Instructions

Quote translating one saved audio asset with translation-previews_create, before creating it. Use it to price a translated-audio preview; for a full video dub, quote dubbing_create with generations_estimate-cost workflow=translate-and-dub instead. Read-only and free: it does not translate, create a job, trim or modify the audio, or incur provider charges. Pass the same projectId, audioAssetId and organizationId you will pass to translation-previews_create, so the quote matches the job that gets billed.

Returns billing (sync_credits, sync_usd, included, or external, meaning provider charges outside sync. that you must disclose separately), estimatedGenerationCost and estimatedCredits (either may be null), and preview durations.

If preview.quotedDurationSeconds is shorter than sourceDurationSeconds, the source exceeds limitSeconds, the free plan's dubbing duration limit (a paid plan lifts it), and only that bounded part was quoted. Explain the limit and offer the bounded preview, but never submit the original: translation-previews_create refuses it instead of trimming it. Save a shorter copy as a new audio asset (audio-trims_create, when listed, with durationSeconds up to limitSeconds), then quote and create with that asset.

Input Schema

NameRequiredDescriptionDefault
projectIdYesProject the translation belongs to, from projects_create or projects_list.
audioAssetIdYesSaved AUDIO asset to quote, such as one from assets_create (type=AUDIO), assets_list or audio-trims_create; the same asset translation-previews_create will translate.
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.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 quote, such as one from assets_create (type=AUDIO), assets_list or audio-trims_create; the same asset translation-previews_create will translate."
  2. Changed2 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 / projectId / description
      Added value: +"Project the translation belongs to, from projects_create or projects_list."
  3. Addedv0.1.5

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description partly restates that ('does not translate, create a job, trim or modify the audio'), but it adds real context annotations cannot carry: no provider charges, the free-plan limitSeconds bound, that only a bounded part is quoted, and that create refuses over-limit sources rather than trimming them. The 'external' billing meaning is also explained. Good depth, with a little redundancy against the annotations.

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?

Front-loaded with purpose and the alternative, then the read-only guarantee, then the returned fields, then the duration-limit edge case. Dense but every paragraph carries distinct information; the only waste is a mild restatement of the read-only annotations.

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?

An output schema exists, yet the description still frames what the quote returns (billing modes, estimated costs, durations) and — crucially — explains the ambiguous case where quotedDurationSeconds is shorter than sourceDurationSeconds. Prerequisites, alternatives and failure behavior are all covered, so nothing an agent needs to call this correctly is missing.

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 baseline is 3, but the description adds cross-call semantics the schema does not state: pass the same projectId, audioAssetId and organizationId as translation-previews_create so the quote matches the job that gets billed. That consistency requirement is genuinely new information beyond field descriptions.

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?

Opens with a precise verb and resource: 'Quote translating one saved audio asset', and names the operation it precedes (translation-previews_create). It also explicitly separates itself from the full-dub path (dubbing_create / generations_estimate-cost), so an agent can route without inspecting 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 explicit when-to-use ('price a translated-audio preview'), an explicit alternative for a different need ('for a full video dub, quote dubbing_create with workflow=translate-and-dub'), and an explicit do-not ('never submit the original'). The recovery path — save a shorter copy with audio-trims_create, then quote that asset — is spelled out step by step.

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