Skip to main content
Glama

YoutubeToText

Get transcription job

get_transcription
Read-only

Get the status and result of a transcription job by id. Poll this until state is done or failed, with wait_seconds up to 45 to let the call wait, or every 10 to 15 seconds without. Do not queue the video again meanwhile: that is charged again. On done, content holds the job's text: the transcript (txt) for transcribe, the subtitles (srt) for get_subtitles, nothing for burn_subtitles (read burned_video_url). Pass format for another one (txt, srt, webvtt) and language for a translation's subtitles. Long texts come in parts of at most 40,000 characters: when next_offset is set, call again with offset set to it, or give the user txt_url/srt_url/webvtt_url to download the whole file. If is_preview is true, only the first preview_minutes minutes were transcribed (the account ran out of minutes): tell the user the result is incomplete and that the whole video can be unlocked on youtubetotext.ai after upgrading at https://youtubetotext.ai/pricing/. If state is failed with an error mentioning plan minutes or credits, direct the user to the pricing page at https://youtubetotext.ai/pricing/.

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": {
      "id": "<id>"
    },
    "name": "get_transcription"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe job id returned by `transcribe`, `get_subtitles`, `burn_subtitles` or `transcribe_playlist`.
formatNoWhich text to return in `content`: `txt` (plain transcript), `srt` or `webvtt` (subtitles). Omit for the job's own format: `txt` for transcribe, `srt` for get_subtitles, none for burn_subtitles. Transcript jobs have `txt` only.
offsetNoCharacter offset to read `content` from. Start at 0, then pass the result's `next_offset` until it is null to get a long text in parts.
languageNoReturn a translation's subtitles instead of the original, by the language name it was requested with, e.g. "Spanish" (case does not matter). Translations have `srt` and `webvtt` only; `format` defaults to `srt`.
wait_secondsNoWait up to this many seconds (max 45) for the job to finish before answering; the call returns as soon as it is `done` or `failed`. 0 answers at once.

Output Schema

NameRequiredDescriptionDefault
idYes
urlNo
typeYes
errorNo
stateYes
titleNo
lyricsNo
offsetNo
contentNoOne part of the text in `content_format`. Null until the job is done. When `next_offset` is set, call get_transcription again with that offset for the rest.
qualityYes
srt_urlNoDownload link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs.
txt_urlNoDownload link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs.
durationNoVideo length in seconds
progressYesPercent done, 0 to 100
verbatimYes
font_sizeYes
backgroundYes
created_atYes
is_previewNoTrue means only the first `preview_minutes` minutes were transcribed, because the account ran out of minutes. Tell the user the result is incomplete.
updated_atYes
webvtt_urlNoDownload link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs.
next_offsetNoOffset of the next part, or null when `content` reaches the end
total_charsNoLength of the whole text in `content_format`
translationsNo
lyrics_statusNo
content_formatNo
preview_minutesNo
burned_video_urlNoDownload link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs.
content_languageNoThe translation `content` holds; null for the original
tag_audio_eventsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint=true and destructiveHint=false, and the description adds genuine context beyond them: polling cadence, the double-charge risk of re-queueing, `is_preview` truncation when the account runs out of minutes, and `failed` states attributable to plan minutes or credits. It stops short of describing response shape itself, but the output schema covers that.

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 is front-loaded and each sentence carries operational value, but it is one dense block and the pricing-page directive is effectively repeated for the preview case and the failed-with-credits case, which could be consolidated.

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?

With an output schema present, the description need not enumerate return fields, yet it still explains the useful ones: `content`, `next_offset`, the size cap of 40,000 characters, `is_preview`/`preview_minutes`, and `burned_video_url` for burn jobs. Nothing an agent needs in order to call and interpret 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 real semantics: `format` defaults per job type (txt for transcribe, srt for get_subtitles, none for burn_subtitles), `language` selects translation subtitles, and `offset` should be fed from `next_offset` until null. That goes beyond restating the schema.

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 ('Get the status and result of a transcription job by id') and implicitly separates itself from the queueing siblings via the warning not to re-queue the video. An agent can tell this is the polling/result-retrieval tool without opening the 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 explicit operating instructions: poll until `state` is `done` or `failed`, use `wait_seconds` up to 45 or poll every 10-15 seconds otherwise, and explicitly says not to queue the video again because it is charged again. It also routes the agent between paging with `offset`/`next_offset` versus handing over the download URLs.

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