Skip to main content
Glama

Make a picture of a person speak your audio

generate_lipsync
Destructive

Takes a picture of a person and an audio file and generates a video of THAT person speaking or singing the audio, lip-synced. Returns the new job's id immediately; the result is exactly as long as the audio. WHEN: the user wants a talking avatar, a presenter or a voiceover on a face. The picture supplies the person; the audio supplies the performance AND the length. The whole flow: get_recipe talking-avatar. CONSENT: only a picture of the user, of someone who gave their permission, or of a fictional or AI-generated character; never a real person without their permission, and never a public figure or celebrity (decline and offer a generated character). THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: this spends the user's tokens: the AUDIO's length times a per-second rate that depends on resolution. The server measures the audio's length, rounded UP to the next whole second: that measurement is the price. An external url costs one media-ingest slot: quote and create from the SAME url to pay it once. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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": {
      "character_image": "<character_image>",
      "source_audio": "<source_audio>",
      "resolution": "<resolution>"
    },
    "name": "generate_lipsync"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoOptional direction for the performance (a mood or manner). It does not change what is said: the words come from the audio.
resolutionYesOutput resolution; 1080p costs exactly twice 720p per second of audio. REQUIRED: use `720p` unless the user asked for `1080p`, and name the choice in the priced ask; never carried over from an earlier request.
source_audioYesThe audio to lip-sync to: the id `generate_audio` returned, or its url. It must be audio generated on THIS account: an external url or a local file is not accepted, so make it with `generate_audio` first.
estimate_onlyNoPrice only; creates nothing.
character_imageYesURL of the picture of the person who should speak (a clear, front-facing portrait works best; see CONSENT). A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / source_audio / description
      Previous value: -"The audio to lip-sync to: the id `generate_audio` returned, or its url. It must be audio generated on THIS account; an external audio url or a local file is not accepted."New value: +"The audio to lip-sync to: the id `generate_audio` returned, or its url. It must be audio generated on THIS account: an external url or a local file is not accepted, so make it with `generate_audio` first."
  2. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: states the job id comes back immediately, the output length equals the audio, the price is the audio length rounded up to the whole second times a resolution-dependent rate, and that an external url consumes one media-ingest slot. It also covers consent policy, the already-opened card, and the required wait path. None of this contradicts the destructive/openWorld hints, and it materially changes how an agent should behave.

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?

Front-loaded and clearly segmented with labeled blocks (WHEN, CONSENT, THE CARD, WAIT, COST, SPENDS TOKENS, IDEMPOTENCY), so an agent can scan to the needed rule. It is dense and long, with some all-caps shouting, but almost every line carries a rule that would otherwise be missed.

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 costly, destructive, token-spending generation tool with no output schema, the description covers the return shape (job id), the follow-up call (wait_for_generation with `media`), pricing and the estimate-only path, consent, and what to do when no card appears. Nothing essential for correct invocation 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%, so the baseline is 3, but the description still adds meaning the schema does not: audio length determines both output duration and price, and quoting plus creating from the same external url avoids paying the ingest slot twice. It also reinforces that `prompt` shapes mood rather than the spoken words.

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?

Opens with a specific verb and resource pair: takes a picture plus audio and generates a lip-synced video of that person. It also separates itself from siblings like generate_video and generate_audio by naming the two inputs' roles (picture supplies the person, audio supplies the performance AND the duration).

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?

An explicit WHEN block names the user intents (talking avatar, presenter, voiceover on a face) and points to the `talking-avatar` recipe for the full flow. It also gives a negative case: public figures or celebrities should be declined with an offer of a generated character, which is a genuine decision rule rather than just context.

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.