Skip to main content
Glama

Replace a person on a cover with a photo

replace_person_on_cover
Destructive

Put the person from a photo on a cover in place of one person (async, 1 credit for two versions, refunded only if both fail). Each version is a NEW cover. CONSENT ON EVERY CALL: set person_consent true only after the user confirms, for this photo, that they are the person or have the person's permission, and that the person is an adult. Ask each time; never set it on their behalf. BeYourCover records each confirmation. Stage the photo with upload_reference_image and pass its upload_id. The photo is checked before any charge: one adult, no public figure, content policy.

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": {
      "cover_id": "<cover_id>",
      "photo_upload_id": "<photo_upload_id>",
      "person_consent": "<person_consent>"
    },
    "name": "replace_person_on_cover"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoOptional: which person on the cover to replace, e.g. "the woman on the left". Defaults to the main person.
cover_idYesThe coverId to change (from a completed generation job or list_covers_for_book).
person_consentYesMust be true. The user confirms, for this call, that they are the person in the photo or have that person's permission, and that the person is an adult.
idempotency_keyNoOptional key; a retry with the same key returns the same job.
photo_upload_idYesThe upload_id of the person photo, from upload_reference_image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations it discloses cost (1 credit for two versions), the refund rule (only if both fail), the async nature, that validation happens before any charge, and that consent confirmations are recorded. One residual ambiguity: the annotations set destructiveHint=true while the text says each version is a NEW cover, so whether the original cover is preserved is not spelled out. It also doesn't say how to follow an async job, though the idempotency_key's retry behavior is left to the schema.

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 the action and its cost/refund terms, then the consent requirement, then the staging prerequisite — the ordering matches the order an agent needs the information. The all-caps "CONSENT ON EVERY CALL" block is slightly heavy-handed but justified given the legal/consent stakes.

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 an async, credit-charging, consent-gated mutation with no output schema, this covers almost everything: cost, refund, validation, consent, prerequisites. The notable gap is what happens after the call — no mention that a job is returned or that get_generation_status is needed to retrieve results.

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% and already documents all five parameters, so the baseline is 3; the description still earns credit by adding consent semantics the schema does not convey — that confirmation must be re-obtained on every call and never assumed on the user's behalf. It also links photo_upload_id to the upload_reference_image staging step; only idempotency_key and target are left entirely to the schema.

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?

"Put the person from a photo on a cover in place of one person" is a precise verb+resource+scope statement, and "Each version is a NEW cover" implicitly separates it from in-place editing tools such as edit_cover. The agent immediately knows this swaps a person on a cover using an uploaded photo and returns two versions.

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?

It names the prerequisite tool explicitly ("Stage the photo with upload_reference_image and pass its upload_id") and gives an unambiguous when/when-not rule for consent: set person_consent true only after the user confirms for this photo, ask each time, never set it on their behalf. That is explicit routing plus explicit exclusion in one place.

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