Skip to main content
Glama

提交多角色配音

dubbing_submit

多角色配音:按 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配音分段列表,按顺序合成

Output Schema

NameRequiredDescriptionDefault
srtUrlNo字幕 SRT(同步完成时返回)
statusNo
taskIdNo大任务异步(HTTP 202)返回,用 get_dubbing_task 轮询
messageNo
audioUrlNo小任务同步完成(HTTP 200)时返回
requestIdNo
creditCostNo202=预估冻结;200=实扣

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (which only say non-read-only, non-idempotent, open-world), the description discloses that this is a billable operation charged per voice's unit price (free voices cost 0), that responses come in two modes (sync object vs async 202 taskId), and that failures are not retried. These are exactly the operational facts 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is dense but front-loaded: purpose and input shape first, then billing, then sync/async behavior, then polling and retry semantics. No sentence is filler, and the risk-bearing facts (credits, no auto-retry) are stated explicitly rather than buried.

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?

Even though an output schema exists, the description still explains the sync vs async return shapes and the polling contract, which the output schema alone cannot convey. Combined with billing disclosure, the voice-discovery prerequisite, and failure semantics, nothing an agent needs in order to invoke 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% and there is only one parameter, but the description adds meaning the schema does not: segments are synthesized in order on a shared timeline, and the chosen voice id directly determines credit cost, with free voices available. It also reinforces the schema hint to call list_dubbing_voices first, which helps parameter selection rather than merely restating fields.

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 description opens with a specific verb and resource ("多角色配音:按 segments 合成带时间轴的语音") and states the outputs (audio URL + SRT subtitles), which cleanly separates it from single-voice siblings like text_to_speech. The required input shape and the multi-segment, timeline-scoped nature of the operation are both made explicit.

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?

It gives concrete follow-up routing: small jobs return synchronously, large jobs return 202 with a taskId that must be polled via get_dubbing_task every ~5 seconds, with an explicit warning not to poll indefinitely, plus a note that failures are not auto-retried. What it lacks is guidance on when to prefer this tool over other speech tools in the catalog, but the when-to-use shape of the operation itself is clear.

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