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.

Input Schema

TableJSON 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.
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. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the 5-credit cost, the destructive consequence of using specPrompt (loses authenticity, discards the real frame), and the default behavior of 'prompt'. It does not mention auth requirements or rate limits, but the operational consequences are unusually well covered.

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?

Four dense sentences, each front-loaded with the highest-value guidance first (what it does and its cost), followed by parameter routing and the key pitfall. No filler.

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 4-param tool with no annotations and no output schema, the description covers cost, inputs, defaults, and failure modes thoroughly. The only gap is that it says nothing about what the call returns (an image URL, render status, etc.), which an agent might need to proceed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four parameters are already documented in the schema. The description reinforces the roles of sourceImageUrl, faceImageUrl, prompt, and specPrompt, but adds little beyond what the schema descriptions already state, so it sits at the baseline.

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: swapping an avatar's face onto a real hook frame. It is instantly distinguishable from siblings like generate_image or generate_video because it describes an image-to-image face compositing operation.

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?

Explicit routing rules: ALWAYS use sourceImageUrl + faceImageUrl, only override 'prompt' when the user gives custom instructions, and NEVER put user instructions in specPrompt. When-to-use and when-not-to-use are both spelled out.

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