Skip to main content
Glama

List subtitle lines with their speaker

get_speaker_lines
Read-onlyIdempotent

For a multi_speaker localize_video job: every source subtitle line with block_id, time, detected speaker and (after translation) the translated line. Use it when speaker detection looks wrong (fewer speakers than characters, a child merged with an adult, a line given to the wrong person): read the lines, work out who says each one from the story, then fix them with set_speaker_lines before set_speaker_voices.

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>"
    },
    "name": "get_speaker_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_guidYesjob_guid of one language from localize_video.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds value beyond that by naming the returned fields and the translated-line state ('after translation'), which tells the agent when data may be incomplete. It stops short of describing ordering or result size for long videos.

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?

Well front-loaded: what it returns first, when to use it second, the repair workflow last. Dense but every clause carries information. The nested parenthetical examples make the second sentence long, though nothing is truly redundant.

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?

With no output schema, the description carries the burden of explaining return values and does so field by field, plus it flags the pre-translation caveat. What is missing is edge behavior: what happens if the job is not multi_speaker, or line ordering for very long videos.

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

Parameters3/5

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

Only one parameter and schema coverage is 100%, so the schema already explains job_guid fully. The description adds a single qualifier, that the job must be a multi_speaker localize_video job, which is meaningful context but minimal added semantics. Baseline 3 applies.

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 ('every source subtitle line with block_id, time, detected speaker and the translated line') plus the scope constraint 'For a multi_speaker localize_video job'. The sibling relationship is unmistakable: it reads lines, while set_speaker_lines and set_speaker_voices write them.

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 concrete triggering conditions ('speaker detection looks wrong: fewer speakers than characters, a child merged with an adult, a line given to the wrong person') and an explicit sequencing rule: read, decide, then set_speaker_lines before set_speaker_voices. An agent knows exactly when to reach for this versus the two setters.

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.