Skip to main content
Glama

Create or update characters

upsert_characters

Creates characters (no id, name required) or updates them (id + expected_version, only the fields sent change), with their looks (costumes, and the other bodies a character takes).Create each character complete, all in one call: name, role, age, gender, logline, appearance (canonical: reused for every image), voice_style, and for central characters (≤3) their story (one text: want, need, wound, flaw, stakes, contradiction, empathy lever, arc, a labelled line each); give a look a name and a description. A character who changes shape (a dragon, a wolf, a monster, a child or aged self) gets one more look per shape with is_form: true, its description the whole body of that form; a scene where they are in that shape picks it as their look, or the video shows their usual body.Cast for contrast: central characters must be easy to tell apart at thumbnail size (different hair length and colour, silhouette, wardrobe colours). Cast good-looking people by default, as the hit dramas do: leads strikingly beautiful or handsome, villains glamorous, supporting characters attractive, children cute, elders distinguished, each in the ideal of the genre and visual style and right for their age (never sexualised). Write plain or unattractive features only when the user or the story asks for them, and then say so plainly ("plain, homely face"): the portrait follows those words. Each result lists what the character is still missing: fill it in your next call (send the id, expected_version and those fields); notes say what to fix about an appearance just written. Only the fields listed here exist; any other is refused. A name already in use fails with DUPLICATE_NAME and the existing id.

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": {
      "drama_id": "<drama_id>",
      "characters": "<characters>"
    },
    "name": "upsert_characters"
  }
}

Input Schema

NameRequiredDescriptionDefault
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.
charactersYesCharacters to create or update, matched by name: appearance, voice, story and looks.

Output Schema

NameRequiredDescriptionDefault
charactersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses failure behavior (DUPLICATE_NAME), strict validation ("Only the fields listed here exist; any other is refused"), merge semantics for omitted looks, and a real side effect (changing appearance "outdates every portrait and shot"). That is the kind of consequence data an agent needs before writing, and it is consistent with readOnlyHint=false and 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.

Conciseness3/5

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

The create/update contract is front-loaded, but the body is a dense run-on that repeats the schema's own attractiveness and appearance guidance almost verbatim (including a missing space in "takes).Create"). Useful content, but it could lose a third of its words without losing information.

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 two-parameter upsert with an output schema, everything an agent needs is present: create vs update paths, form-look rules, the completion loop via missing fields and notes, and the duplicate-name case. Nothing material is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the bar is purely added meaning, and the description supplies cross-field semantics the schema cannot express: what is_form looks mean for scene rendering, that looks omitted are kept, that appearance is canonical and reused for every image while clothing lives in looks, and the casting/contrast intent behind the fields.

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 plus the two modes spelled out: "Creates characters (no id, name required) or updates them (id + expected_version, only the fields sent change)". It also names the subordinate resource (looks/costumes/forms), so an agent can distinguish this from upsert_locations or upsert_props 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear conditions for each mode (no id = create, id + expected_version = update) and a follow-up loop ("Each result lists what the character is still missing: fill it in your next call"), plus the DUPLICATE_NAME recovery path with the existing id. It does not route against sibling tools such as generate_character_sheet, so it stops short of full when-to-use/when-not guidance.

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.