Skip to main content
Glama

generate_with_face

Generate a NEW image of the SAME PERSON/character as an existing photo or portrait — dress them differently, move them somewhere else, make an avatar. This is the tool for "here is my photo, now put me in a suit / in a park", and also the ONLY tool for "generate another picture of ".

Pass exactly ONE of:
  character: the name you gave a character via create_character_from_description
  or create_character_from_photo(..., name=...). Looked up in your own list —
  see list_characters(). This is the normal way once a character has a name.
  photo_media_id: a mediaId directly (create_character_from_photo's
  `portrait_media_id`, or any earlier generate_image media_id) — for a one-off
  face you haven't registered as a named character.
prompt: describe the NEW scene/outfit and say it is the same person, e.g.
"the same man, now in a navy suit in a bright office".

Why this and not entity_id/character_slot_index: a character's Flow CARD is not
what carries resemblance into a NEW scene — the reference image itself does
(verified live, repeatedly). Combining entity_id with an image reference in the
same call also fails outright (HTTP 500). So this always generates from the
reference image alone, never from entity_id — that is deliberate, not a
workaround to fix later.

project_id: put the result into a project made with create_project instead of the
account's default one. photo_media_id itself stays account-bound, as always.

Input Schema

NameRequiredDescriptionDefault
modelNoBELUGA
aspectNoIMAGE_ASPECT_RATIO_LANDSCAPE
promptYes
characterNo
project_idNo
photo_media_idNo
include_previewNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / aspect / enum
      Previous value: -[
      -  "IMAGE_ASPECT_RATIO_LANDSCAPE",
      -  "IMAGE_ASPECT_RATIO_PORTRAIT",
      -  "IMAGE_ASPECT_RATIO_SQUARE"
      -]New value: +[
      +  "IMAGE_ASPECT_RATIO_LANDSCAPE",
      +  "IMAGE_ASPECT_RATIO_PORTRAIT",
      +  "IMAGE_ASPECT_RATIO_SQUARE",
      +  "IMAGE_ASPECT_RATIO_LANDSCAPE_FOUR_THREE",
      +  "IMAGE_ASPECT_RATIO_PORTRAIT_THREE_FOUR"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / model / default
      Previous value: -"GEM_PIX_2"New value: +"BELUGA"
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "NARWHAL",
      -  "GEM_PIX_2",
      -  "HARBOR_SEAL"
      -]New value: +[
      +  "BELUGA",
      +  "GEM_PIX_2",
      +  "HARBOR_SEAL"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / model / default
      Previous value: -"NARWHAL"New value: +"GEM_PIX_2"
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing a hard failure mode (combining entity_id with an image reference returns HTTP 500) and the deliberate design decision to always generate from the reference image alone. It does not cover cost/credit consumption or rate-limit behaviour for a non-idempotent generation call, so it stops short of full coverage.

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-loads the core purpose and uses bullets and headers so a reader can scan it. It is long, and the aside about entity_id being 'deliberate, not a workaround to fix later' is close to editorial padding, but for a 7-parameter tool with mutual-exclusion rules the length is largely earned.

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 complex generation tool with no output schema, it covers purpose, when-to-use, mutual exclusivity of the reference inputs and project routing. It omits any description of the generated output or the meaning of model/aspect/include_preview, which leaves minor gaps an agent must resolve by inference.

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?

With schema coverage at 0%, the description carries the parameter burden and does so for the four critical params: it distinguishes character vs photo_media_id as mutually exclusive, explains the lookup source for character, and describes prompt's expected content and project_id's effect. The model, aspect and include_preview params remain unexplained in both schema and description, leaving a gap.

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 with precise scope: 'Generate a NEW image of the SAME PERSON/character as an existing photo or portrait.' It explicitly separates itself from generate_image, generate_character_image and generate_scene by claiming to be 'the ONLY tool for generate another picture of <character I already made>'.

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 a concrete when-to-use scenario ('here is my photo, now put me in a suit / in a park') and an explicit routing rule: pass exactly one of character or photo_media_id, with each branch explained and tied to a setup path (create_character_from_description, create_character_from_photo, list_characters). It even states when NOT to use entity_id/character_slot_index and why.

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.