Skip to main content
Glama

Try on clothes from another photo

try_on
Destructive

Puts the clothes another of the user's photos shows (with_photo_id) on the person in one of their photos, paid from their credits; part top or bottom takes only that part of the outfit. with_photo_id may not be one of a character's photos, nor photo_id itself. Pass the price the user agreed to as max_credits: the photo's prices from get_shoot or list_photos name it. If a call to this tool got no answer, it may already have started: check list_photos before calling it again.

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": {
      "photo_id": "<photo_id>",
      "with_photo_id": "<with_photo_id>",
      "max_credits": "<max_credits>"
    },
    "name": "try_on"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNo
againNotrue only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.
photo_idYes
max_creditsYes
with_photo_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / again
      Added value: +{
      +  "description": "true only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructive=true and non-idempotent, and the description adds substantive behavior on top: the operation is paid from credits, a repeated identical call within 10 minutes returns the prior result and charges nothing, and an unanswered call may already be in flight. That de-duplication window and billing behavior are exactly the traits an agent cannot infer from structured fields.

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?

Purpose is front-loaded in the first clause and every following sentence carries distinct information – part behavior, cost source, retry protocol. The sentences are long and semicolon-chained, which makes them denser than necessary, but no sentence is 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 destructive, credit-spending tool with no output schema, the description covers cost, de-duplication, retry recovery, and input constraints – the decision-critical parts. It never says what a successful call returns (a photo id, a shoot, an async status), which is a real gap given the hint that the call may not answer promptly.

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 description coverage is only 20% (just `again`), and the description compensates for photo_id, with_photo_id (its exclusion rules), max_credits (source of the price value), and part (top/bottom). However, the de-dup and billing semantics of `again` are documented in the schema rather than the description, and integer photo ids get no format or source hint, so the added meaning is solid but not complete.

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?

"Puts the clothes another of the user's photos shows (with_photo_id) on the person in one of their photos" names a concrete verb and two distinct resources, and the clause "part top or bottom takes only that part of the outfit" clarifies the scope variant. It also distinguishes the two photo arguments, which is the main confusion risk with a virtual try-on tool.

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?

Gives real usage conditions: with_photo_id must not be one of a character's photos nor equal photo_id, max_credits must be the price the user already agreed to (sourced from get_shoot or list_photos), and a no-answer call should be checked via list_photos before retrying. It does not explicitly contrast itself with nearby editing siblings such as combine or reroll, so it stops short of full alternative routing.

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