Skip to main content
Glama

Sync an episode's subtitles to its videos

sync_episode_subtitles
Idempotent

sync_scene_subtitles for every scene of the episode that has a selected video and dialogue and is not synced yet for that video (scenes already synced are left as they are). Costs 1 credit per scene synced; a scene that fails or where no line is heard is given back. Needs credits for all of them before it starts. Returns synced (with how many lines to check), failed (with why), already_synced and without_video. Render the episode again to see it.

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": {
      "episode_id": "<episode_id>"
    },
    "name": "sync_episode_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
episode_idYesThe episode id (ep_…), from get_drama_context or get_episode.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 cost (1 per scene), refunds for failed or silent scenes, the requirement to hold credits for all scenes before starting, and both the skip rule and the returned buckets. This materially changes how an agent should plan the call.

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?

Dense but ordered: eligibility rule, cost/refund policy, precondition, return shape, follow-up action. Every clause carries information, though the sentence is long and could be broken for easier scanning.

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?

Output schema exists, so return values needn't be fully explained, yet the description still names the four result buckets. Combined with cost, idempotency context and the render follow-up, only minor routing guidance versus sync_scene_subtitles 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 already documents the episode_id format and where to obtain it; the description adds only the implicit note that all eligible scenes of that episode are affected, which reinforces the parameter's scope.

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+resource (syncs an episode's subtitles to its videos) and precisely scopes the work to scenes with a selected video and dialogue that aren't already synced. It also distinguishes itself from the sibling sync_scene_subtitles by describing itself as that operation applied to every eligible scene of an episode.

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?

Clearly defines the conditions under which scenes are processed and notes that already-synced scenes are left alone, plus tells the agent to render the episode again to see results. It lacks an explicit 'use sync_scene_subtitles instead when...' routing statement, though the relationship is strongly implied.

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.