Skip to main content
Glama

Fix the speaker of subtitle lines

set_speaker_lines

For a multi_speaker localize_video job that has not started voicing yet (e.g. WaitingSpeakerVoices): move lines to another speaker. Send only the lines to change; a new speaker number (e.g. "2" when only 0 and 1 exist) adds a character. Applies to every language of the same video that has not started voicing. The job does not continue: call set_speaker_voices afterwards (include a voice for any new speaker).

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": {
      "job_guid": "<job_guid>",
      "lines": "<lines>"
    },
    "name": "set_speaker_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
job_guidYesjob_guid of one language from localize_video.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only state readOnly=false, destructive=false, idempotent=false. The description goes well beyond that: scope is every language of the same video that has not started voicing, the job halts after this call and will not continue until set_speaker_voices runs, and supplying an out-of-range speaker number creates a character rather than erroring. These are the non-obvious behaviors an agent would otherwise get wrong.

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?

Four tight sentences, front-loaded with the precondition that gates the call, followed by payload guidance, scope, and the mandatory next step. No sentence is redundant; each carries a distinct operational fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation with no output schema, it covers preconditions, payload semantics, cross-language side effects, and required follow-up. What remains unstated is failure behavior — e.g. what happens if the job already started voicing — and whether any result is returned, though the absence of an output schema makes the latter minor.

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 50%, and the description compensates usefully: it clarifies that only changed lines need sending (the array is a delta, not a full replacement), that a new speaker number such as "2" creates a character, and that a single job_guid still applies across all languages of the video — a meaning the schema's "one language" phrasing does not convey. It does not mention the 2000-item cap or validate speaker string formatting, so it stops short of full coverage.

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 — "move lines to another speaker" — scoped to a multi_speaker localize_video job, and implicitly separates itself from set_speaker_voices, which it explicitly sends the agent to afterwards. An agent can identify the operation and its object 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 an explicit precondition ("has not started voicing yet (e.g. WaitingSpeakerVoices)"), the follow-up requirement ("call set_speaker_voices afterwards"), and points at get_speaker_lines for block_id sourcing. It also names the sibling tool that must run next, so the sequencing is unambiguous.

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.