Skip to main content
Glama

face_swap

Put the face from the source photo onto the largest face in the target photo and return the result image URL. Costs 5 credits; failed jobs are refunded. Only use photos of people who consented.

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

Input Schema

NameRequiredDescriptionDefault
source_image_urlYesPublic URL of the photo with the face to use
target_image_urlYesPublic URL of the photo to put the face on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose cost (5 credits), refund behavior on failure, and the returned image URL. However, it is silent on whether the operation is synchronous or asynchronous, whether a task ID is returned, and on input size/format constraints — gaps that matter for a paid media-generation tool.

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 short sentences, front-loaded with the core action, then cost/refund, then the usage constraint. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, no-annotation tool with no output schema, the description covers purpose, cost, refund policy, and the return value. It is still incomplete on execution model (sync vs async and the relationship to get_face_swap_result) and on input constraints, which an agent needs before spending credits.

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 both URL parameters are already documented, and the description's only real addition is that the largest face in the target image is the one replaced. That is useful targeting semantics but does not add URL format, size, or content constraints beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb and resource (place a face from the source photo onto the largest face of the target photo) and even returns the result URL, so the agent knows exactly what happens. It does not explicitly distinguish itself from siblings such as apply_effect or detect_faces, leaving that differentiation to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only guidance is a consent constraint ("Only use photos of people who consented"), which is a policy restriction rather than when-to-use routing. Nothing tells the agent whether this call returns the result directly or requires a follow-up to get_face_swap_result, which is the key alternative at decision time.

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