Skip to main content
Glama

Make an influencer say a script

lip_sync
Destructive

Use this to make the influencer in one of the user's finished videos say a script, in a chosen voice, with their lips matched to the words. It replaces the video's sound. Pick voice_id with list_voices. The script must fit the video at a natural pace (about 2.5 words a second); for more words, extend the video first. Costs 1 credit per second of video, or 2 with tricky_shot (for side angles, a partly hidden face or fast movement); say the cost before calling. To have a new video speak, generate_video with sound and the line in the prompt is usually better; lip_sync is for a specific voice or a video that's already made. Returns at once with a generation_id for get_generation (usually 1 to 3 minutes).

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": {
      "video_id": "<video_id>",
      "script": "<script>",
      "voice_id": "<voice_id>"
    },
    "name": "lip_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptYesThe words to speak.
video_idYesA video_id from get_generation or list_media.
voice_idYesFrom list_voices.
tricky_shotNoFor side angles, a partly hidden face or fast movement: 2 credits per second instead of 1.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
summaryYes
video_idNo
error_codeNoPresent only on a refusal.
lip_sync_idNo
credits_leftNo
generation_idNo
credits_chargedNo
expected_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations flag destructiveHint=true, and the description backs that up concretely by stating it replaces the video's sound. It adds behavior the annotations cannot: 1 credit/second (2 with tricky_shot), the requirement to state cost before calling, the ~2.5 words/second pacing ceiling, and that it returns immediately with a generation_id for get_generation (1-3 minutes). It does not say whether the original audio is recoverable, which is the one meaningful gap given destructiveness.

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?

Purpose is front-loaded in the first clause, followed by prerequisites, cost, and the sibling comparison in a logical order. Every sentence carries information, though the cost clause packs several distinct facts (rate, tricky_shot multiplier, and the instruction to disclose cost) into one run-on sentence.

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?

For a destructive, credit-consuming, asynchronous tool, the description covers what is modified, cost and its disclosure, input derivation for each id, pacing limits, the superior alternative, and the async return pattern. Since an output schema exists, it correctly stops short of describing return fields in detail.

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 real meaning beyond the schema: voice_id must come from list_voices, script length is bounded by video duration at natural pace rather than just the 3000-char limit, and tricky_shot is defined by the shot conditions that justify its doubled cost.

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: make the influencer in one of the user's finished videos say a script with lip-matched audio. It immediately scopes what is being modified (a finished video, sound replaced), which lets an agent separate it from generate_video without opening a 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 alternative and the condition that selects it: for a brand-new video that speaks, use generate_video with sound and the line in the prompt; lip_sync is for a specific voice or an already-made video. It also routes to extend_video when the script exceeds natural pacing and to list_voices for voice selection.

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