Skip to main content
Glama

Change what one cast member is (and redraw just them)

describe_cast_member
Destructive

CHANGES ONE cast member into a different character: you pass a new one-line visual description, aicut rewrites the member's stored look from it and draws ONE new portrait (the rest of the roster is untouched). It is the tool for 'make the husband smaller and a white strawberry': NOT regenerate_cast_portrait (the SAME character again), nor a new generate_cast (it re-authors every member and re-buys every portrait). WHEN: the user wants a member to BE something else. character_id is the member's id from generate_cast_portraits or list_characters (kind cast_member); a free generate_cast draft has no library ids, so re-draft that instead. THE DESCRIPTION: ONE line of plain visual English, WHOLE, not a diff ('a small white strawberry man in a rumpled shirt', never 'the same but smaller'): the stored look is rebuilt from it alone, so fold in what the member already was; under about 500 characters. Do not read the line back: show the RESULT. IT PERSISTS: later episodes cast the NEW character. 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 the member with its new description, portrait_image_id, portrait_status: "generating", changed (can be []) and a report: RELAY THE report as written. changed: [] means the member ALREADY had exactly this description and a portrait was bought anyway. IF THE PICTURE FAILS OR THE ACCOUNT RUNS OUT (402) THE DESCRIPTION HAS ALREADY CHANGED: the member is the new character wearing its old portrait; say so, and regenerate_cast_portrait draws the new look for one portrait's price. Do not re-send this tool (it buys a second picture). A 503 portrait_not_attached means the portrait WAS generated and CHARGED but did not attach: call THIS tool again with the quoted idempotency_key and the same arguments to re-attach it; a different key, or regenerate_cast_portrait, would buy a second one. COST: one standard image at image_model (or the platform default portrait model), the same as regenerate_cast_portrait; estimate_only: true prices it without re-describing anything. THE GO: one change, one named member, one priced ask. 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>",
      "description": "<description>"
    },
    "name": "describe_cast_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
descriptionYesWhat this character looks like NOW: one whole line of plain visual English (see THE DESCRIPTION). Not a diff or an image prompt: anything omitted is lost.
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.8/5.0
Behavior5/5

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

Annotations mark this destructive and non-idempotent; the description goes well beyond that, disclosing persistence ('later episodes cast the NEW character'), cost model, the changed:[] edge case, partial-failure semantics (402/503 leave the description changed), and the specific rule that re-sending buys a second picture while a quoted idempotency_key re-attaches. Consistent with idempotentHint=false.

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?

Strongly front-loaded with scaled section headers (WHEN, THE DESCRIPTION, IT PERSISTS, THE CARD, COST, THE GO), but it is very long and repeats the 'a second call buys a second picture' theme three times, and ends with a dangling fragment ('`idempotency_key`: IDEMPOTENCY (this server's instructions)').

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 paid, destructive, non-idempotent mutation with no output schema, the description covers inputs, return shape (description, portrait_image_id, portrait_status, changed, report), relay instructions, polling behavior, price estimation, and all documented failure modes. Nothing an agent needs to call it safely is missing.

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 the baseline is 3, but the description adds real meaning: description must be one whole line, not a diff, under ~500 characters with the prior look folded in; character_id must come from generate_cast_portraits or list_characters kind cast_member; image_model should be the member's own model to match price.

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 ('CHANGES ONE cast member into a different character') plus the exact mechanics ('rewrites the member's stored look... draws ONE new portrait'), and explicitly contrasts with regenerate_cast_portrait and generate_cast. An agent can route correctly without opening any schema.

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 an explicit WHEN clause ('the user wants a member to BE something else'), names the two alternatives it is not and why, warns that a free generate_cast draft has no library ids so it must be re-drafted instead, and defines a pre-call prerequisite (price with estimate_only, get a go).

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.