Skip to main content
Glama

提交多角色配音

dubbing_submit

Submit multi-voice dubbing segments to synthesize timed audio, returning an audio URL and SRT subtitles, or a task ID for polling on larger jobs.

Instructions

多角色配音:按 segments([{voice, text}],至少一段)合成带时间轴的语音,返回音频 URL 与 SRT 字幕。计费工具:按所选音色单价扣积分(免费音色 0 积分),小任务同步返回(audioUrl/srtUrl/creditCost),大任务异步 202 返回 taskId,用 get_dubbing_task 轮询(建议每 5 秒,不要无限轮询)。失败不自动重试。

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": {
      "segments": "<segments>"
    },
    "name": "dubbing_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
segmentsYes配音分段列表,按顺序合成

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing credit billing per selected voice (free voices cost 0), the sync-vs-async (202/taskId) split with concrete return fields, a recommended polling interval, and that failures are not retried automatically. That is exactly the operational context an agent needs before committing credits.

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 return values are front-loaded, then billing, then the sync/async decision rule. Dense but every clause carries information; the run-on billing/polling sentence could be split for readability.

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 no output schema, the description supplies the return fields (audioUrl/srtUrl/creditCost/taskId) itself, and it covers the async handoff, polling cadence, and failure semantics. Nothing needed to invoke or follow up on this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the nested items already document voice and text, so the baseline would be 3. However, the description adds that at least one segment is required and that segments are synthesized in order to produce a timed track, which explains why the array is ordered and what the output ordering means.

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: synthesize multi-role dubbing from segments into time-aligned audio plus SRT subtitles, returning audioUrl/srtUrl. This is clearly distinct from single-voice siblings such as text_to_speech, and the required segments structure is named up front.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: large tasks return 202 with taskId, so poll with get_dubbing_task roughly every 5 seconds and do not poll indefinitely. Voice IDs are pointed at list_dubbing_voices. It never contrasts this with text_to_speech or submit_asr_job, so the 'when not to use' half is missing.

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