Skip to main content
Glama

Redraw one cast member's portrait

regenerate_cast_portrait
Destructive

Redraws ONE cast member's portrait (the same character, a new image) and attaches it to that member: ONE image generation, not a new cast. WHEN: the user dislikes a member's face, or a portrait FAILED (the story create refuses a cast with a failed portrait and names this). character_id is the member's id from generate_cast_portraits or list_characters (kind cast_member). It draws the SAME character from its stored look: for a CHANGED character (smaller, older, a different thing) use describe_cast_member; never re-draft the whole cast to change one member. THE CARD: this call already put the aicut cast card up, each portrait filling in as it generates: do not poll or call show_generation (one get_image read of portrait_image_id if asked). No card (a terminal)? Poll each generating member's portrait_image_id with wait_for_generation (media image) and give the urls. AFTER: returns portrait_image_id with portrait_status: "generating"; the old portrait stays in the account's images. Each repeat is one more portrait's price, stated every time. COST: one standard image at image_model (or the platform default portrait model), NOT necessarily the rate the draft published (the library does not record which model drew a face); estimate_only: true gives the exact number. THE GO THIS ONE NEEDS: one redraw, one named member, one priced ask: a complaint ('the husband looks wrong') is a reason to OFFER it with its price, never a go; never redraw more members than named. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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": {
      "character_id": "<character_id>"
    },
    "name": "regenerate_cast_portrait"
  }
}

Input Schema

NameRequiredDescriptionDefault
image_modelNoImage model: the member's OWN `image_model` from `generate_cast_portraits` (matches the cast and its price). Omitted, the platform default portrait model is used: maybe a different look and price.
character_idYesThe cast member's library id: `id` on a `generate_cast_portraits` member or on a `list_characters` entry of kind `cast_member`.
estimate_onlyNoPrice only; creates nothing.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: what the call costs (one standard image at `image_model`, which may differ from the draft's published rate), what persists (old portrait stays in the account's images), what is returned (`portrait_image_id` with `portrait_status: generating`), and a next-step contract (card is already shown, don't poll; terminal clients use `wait_for_generation`). That covers the destructive/openWorld profile well, though the destructiveHint=true vs. 'old portrait stays' distinction is stated rather than fully reconciled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the WHEN/COST/AFTER ordering is sensible, but the prose is dense and partly redundant: the one-redraw-one-member spending rule is stated in 'THE GO THIS ONE NEEDS' after already appearing in WHEN and COST, and 'SPENDS TOKENS' re-repeats pricing via `estimate_only` and the idempotency key reference. Several sentences could be merged without losing an instruction.

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?

No output schema exists, and the description compensates by naming the return field and status, plus the follow-up path for both card and terminal clients. For a costly, non-idempotent generation call it leaves nothing an agent needs before invoking: price check, key parameter source, and post-call behavior are all covered.

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 all four parameters are already documented, and the description largely restates them: `character_id` provenance from `generate_cast_portraits`/`list_characters`, the `image_model` default and price caveat, and `estimate_only` as price-only. Useful reinforcement for the model/pricing nuance but no new syntax or constraint beyond 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?

States a specific verb and resource with explicit scope: 'Redraws ONE cast member's portrait (the same character, a new image)'. It immediately disqualifies the nearest confusions ('not a new cast', differs from `describe_cast_member` for a changed character), so an agent can separate it from `generate_cast`, `generate_cast_portraits`, and `describe_cast_member` without opening schemas.

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?

Provides an explicit WHEN clause (user dislikes a face, or a portrait FAILED and blocks story create) plus named alternatives: `describe_cast_member` for a changed character, and 'never re-draft the whole cast to change one member'. It also states a when-not in spending terms: a complaint is a reason to OFFER, never a go, and never redraw more members than named.

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.