Skip to main content
Glama

Generate influencer photos

generate_photos
Destructive

Use this to make new photos of one of the user's saved influencers; their face and look stay the same in every photo. Describe the scene, outfit, pose, setting, lighting and camera. Don't describe the face, body or hair: the influencer's look is added automatically. Mention hair only when the user asks for a change ("in a ponytail"), since restyling it makes them less recognisable. To show a real product, outfit, place or pose, add it as a reference image (up to 2, one per role): "hold" for something in their hand, "wear" for clothing (with garment_category), "accessory" for jewellery, bags or glasses, "background" for the setting, "pose" to copy a pose, "style" for the look and lighting, "custom" with a note. The prompt can then leave out what the reference shows. Costs 1 credit per photo; say the cost before calling. Returns at once with a generation_id; then call get_generation to get the photos (usually 20 to 40 seconds, about a minute for an AI clone). Calling it again starts and charges a new batch, so don't repeat a call to check on one. Failed photos are refunded automatically. Example: {influencer_id, prompt: "holding the serum bottle up to the camera in a bright bathroom, smiling", count: 2, aspect_ratio: "9:16", reference_images: [{image: "upl_…", role: "hold"}]}.

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": {
      "influencer_id": "<influencer_id>",
      "prompt": "<prompt>"
    },
    "name": "generate_photos"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many photos (1 credit each).
promptYesThe scene: setting, outfit, pose, lighting, camera. Not the face. Can be empty with reference images.
aspect_ratioNo9:16 for stories and reels, 3:4 for feed posts, 1:1 square.1:1
influencer_idYesFrom list_influencers.
reference_imagesNoPictures of a real product, outfit, place, pose or style to use in the photos.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
summaryYes
view_urlNo
photo_idsNo
error_codeNoPresent only on a refusal.
credits_leftNo
generation_idNo
influencer_idNo
credits_chargedNo
influencer_nameNo
credits_refundedNoPhotos that couldn't start, refunded at once.
expected_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: states 1 credit per photo with an explicit 'say the cost before calling', notes that re-calling starts and charges a new batch, explains the async contract (returns generation_id, photos in ~20-40s, ~1 min for a clone), and that failed photos are refunded. This is exactly the cost/irreversibility context the destructiveHint=true, idempotentHint=false annotations imply but do not explain.

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 operating rules, costs, and a worked example. Dense but nearly every clause carries information; the only mild redundancy is the example restating roles already enumerated, though it usefully shows the field combination.

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 credit-charging, asynchronous, reference-image-driven generator, the definition covers inputs, cost, latency, polling handoff, retry hazards, and refund behavior. An output schema exists, so return-value detail is correctly left out and the generation_id handoff to get_generation is stated instead.

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 baseline is 3; the description earns above that by spelling out what each reference role means in practice ('hold' for something in the hand, 'wear' with garment_category, 'background' for the setting) and by telling the agent the prompt can omit whatever a reference already shows. It adds usage semantics rather than just restating the enum.

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: 'make new photos of one of the user's saved influencers', and pins the scope ('their face and look stay the same in every photo'). That distinguishes it clearly from siblings like generate_video, edit_photo, and adjust_influencer_look.

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 when/when-not guidance: describe scene/outfit/pose but not face, body or hair; mention hair only for a requested change; use a reference image to inject a real product, place or pose. It also routes the agent away from re-calling to check status ('call get_generation', 'don't repeat a call'), which is the main misuse path.

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