Skip to main content
Glama

face_swap

Swap your avatar's face onto a REAL hook frame from a viral video. Costs 5 credits. ALWAYS use sourceImageUrl (the real viral frame) + faceImageUrl (the avatar). The 'prompt' field controls HOW the swap is done (default is optimized, only override if user gives custom instructions). NEVER put user instructions in specPrompt - that destroys the real frame.

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": {
      "faceImageUrl": "<faceImageUrl>"
    },
    "name": "face_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoControls how the swap is done. Default is optimized. Only override if the user explicitly gives custom swap instructions. This does NOT replace the source frame.
specPromptNoDO NOT USE unless there is absolutely no source frame image available. Generates a completely new AI scene - loses all authenticity.
workspaceIdNoWorkspace (product/brand) id from list_workspaces. Omit to use the default workspace (set_default_workspace), else the newest one.
faceImageUrlYesThe avatar/face reference image URL. This FACE gets placed onto the sourceImage scene.
sourceImageUrlNoThe real frame image URL from the viral video (from cleanThumbnailUrl or scrape_video). This is the SCENE to keep.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "Workspace (product/brand) id from list_workspaces. Omit to use the default workspace (set_default_workspace), else the newest one.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations at all, the description carries the entire burden, and it does disclose two things an agent cannot get elsewhere: the operation costs 5 credits and specPrompt produces a wholly new AI scene that loses the real frame's authenticity. It does not state the return shape (a job id? an async render?), which matters given get_job_status/get_render_status siblings.

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 with purpose, then cost, then the operational rules in priority order, all in four tight sentences. Minor redundancy: the prompt default and the specPrompt warning are each restated almost verbatim from the schema 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?

For a five-parameter, mutation-style, credit-consuming tool with no annotations and no output schema, the definition covers cost, required inputs, the destructive path to avoid, and workspace defaults via schema. The remaining gap is the result/latency model, which an agent needs to know whether to poll a status tool afterward.

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 already 100%, so the baseline is 3; the description earns an extra point by disambiguating the three easily confused fields: prompt is style control only, specPrompt is a last-resort scene generator, and the source/face URL split defines which image is scene versus identity. The distinction between prompt and specPrompt is the main failure mode and it is called out explicitly.

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?

"Swap your avatar's face onto a REAL hook frame from a viral video" gives a concrete verb (swap) plus the two resources involved and the outcome. It is clearly distinguishable from siblings like generate_avatar or generate_image, which do not preserve a real source frame.

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?

The description is emphatic about how to call it: ALWAYS supply sourceImageUrl and faceImageUrl, leave prompt at its optimized default unless the user gives custom instructions, and never route user instructions into specPrompt. What is missing is routing guidance between this tool and named siblings (e.g. remix_hook or generate_avatar when no real frame exists).

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