Skip to main content
Glama

AI picks lines that keep the original voice

ai_keep_original_lines

For a Completed localize_video job: send the whole transcript with the user's instruction to AI (Gemini Flash), which picks the lines that should keep the original voice (voice demos, cloned voice samples, recordings, songs...). By default (apply = true) the choice is applied and the video re-rendered right away. Charges credits by tokens used (credits_charged in the result).

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": "ai_keep_original_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNofalse = only return the suggested lines (still charged).
job_guidYesjob_guid of one language from localize_video.
instructionNoWhat to keep, in the user's words. Empty = voice demos, recordings and songs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description discloses the two behaviors an agent most needs: the operation costs credits by tokens used (reported as credits_charged) and, when apply=true, it immediately re-renders the video. It also warns that apply=false is still charged, which is exactly the kind of non-obvious side effect annotations cannot express.

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?

Three sentences, front-loaded with the precondition and the action, then the default behavior, then cost. No filler, and the parenthetical example list is short enough to aid recognition without bloating the text.

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 correctly mentions credits_charged in the result and covers the prerequisite, default mode, and re-render side effect. It stops short of describing what the returned suggested lines look like (format, line identifiers) or what happens if the job isn't Completed, which are the remaining gaps for a mutation-with-cost tool.

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%, so the baseline is 3, but the description adds workflow meaning: the instruction is sent alongside the whole transcript, and the default empty instruction falls back to voice demos, recordings and songs. That clarifies intent rather than restating types, though it doesn't add anything about job_guid beyond the schema.

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 names a specific verb and resource — sending the transcript to Gemini Flash to pick lines that keep the original voice — and scopes it to 'a Completed localize_video job'. It also enumerates the kinds of lines targeted (voice demos, cloned samples, recordings, songs), which lets an agent distinguish it from the manual set_keep_original_lines sibling without opening either schema.

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 a clear precondition (job must be Completed) and a clear mode switch: apply=true applies and re-renders, apply=false returns suggestions only. What's missing is explicit routing to the manual alternative (set_keep_original_lines) for users who want to hand-pick lines, so the when-not case is only 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.