Skip to main content
Glama

rewrite_video_subtitles

Submit edited source and target subtitles to rewrite them and regenerate the video with the new subtitle version. Requires explicit confirmation via a token before committing the order.

Instructions

用编辑后的字幕重新生成视频。⚠️ 真实扣费,所以和 translate_video 一样是两步调用:第一次不带 confirm_token,本工具不提交、不扣费,只回 409 加一段 data.userPrompt(里面有试算出来的真实额度)和一个 data.confirmToken;把 userPrompt 原样发给用户,等他明确同意,再带上那个 confirmToken 重新调用才会真的提交。客户端支持服务端弹窗时,本工具会直接问用户,同意即提交。确认码绑定「订单号 + 这两份字幕正文」,字幕改一行都要重新确认——用户同意的是他看过的那一版。原任务的 status 必须是 2(成功)。返回 data.videoTranslateRewriteOrderNo 是改写订单号,查进度用 get_video_rewrite_status。改写完成后请重新用原视频订单号去取产物(wait_for_video_translation 或 get_video_translation_status),它们会自动给改写后的那一版;改写前拿到的旧链接仍然有效,别再拿它当最终产物给用户。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNo把要念给用户听的那部分文案(任务状态、产出说明、进度行、失败原因、下载说明)输出成哪种语言。按用户当前说话的语言填,不确定就别传——不传取服务端 MCP_LOCALE,再没有就是 zh。
order_noYes视频翻译任务订单号
confirm_tokenNo确认码,来自本工具上一次调用返回的 data.confirmToken。只有把 data.userPrompt 原样给用户看过、用户明确同意之后才带上它——带着它这一次就会真的扣费。首次调用不要传,也不要自己编。一次性、15 分钟有效,且绑定当时那两份字幕正文。
video_task_paramNo可选,完整生成参数,覆盖首次提交时的参数;不传则沿用原任务的参数。字段同 translate_video 的 video_task_param。
source_subtitles_txtYes源语言字幕文本
target_subtitles_txtYes目标语言字幕文本

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and exceeds it: it discloses real billing, the non-committing first call returning 409 with data.userPrompt and data.confirmToken, the binding of the token to order + subtitle texts with 15-minute expiry, and the caveat that pre-rewrite links remain valid but must not be presented as final. This is exceptional behavioral disclosure for a mutating, billing-affecting tool.

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?

It is a dense wall of text, but every sentence carries critical operational information for a billing-affecting tool: the two-step protocol, token semantics, prerequisites, and follow-up routing. The billing warning and two-step requirement are front-loaded. A structured step list would improve scannability, but no sentence is wasted.

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?

Despite having no output schema and no annotations, the description covers prerequisites, the exact 409 error contract, token lifecycle, the returned data.videoTranslateRewriteOrderNo field, the correct progress-checking tool, and the post-rewrite product retrieval flow. Nothing an agent needs to invoke this tool correctly and safely is missing for a tool of this complexity.

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 100%, so the baseline is 3. The description adds workflow-level meaning beyond the schema: it explains how confirm_token is obtained (from the prior 409 response), when it must be omitted vs. supplied, and that editing even one subtitle line invalidates prior consent — tying source_subtitles_txt and target_subtitles_txt to the confirmation semantics.

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 opening phrase '用编辑后的字幕重新生成视频' states a specific verb (rewrite/regenerate) plus resource (video) plus input (edited subtitles). It is immediately distinguishable from siblings: translate_video creates the original translation, get_video_subtitles fetches subtitles, and get_video_rewrite_status only checks progress.

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 gives exhaustive usage guidance: the original task must be status 2, the first call must omit confirm_token, the second call must include it after user consent, progress is checked via get_video_rewrite_status, and final products are re-fetched via wait_for_video_translation or get_video_translation_status. Every relevant sibling and its role is named explicitly.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhang452064326/belindoc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server