Skip to main content
Glama

Rename a story element

update_entity
Destructive

Rename a story element, as renaming it in the Story elements panel does: the element takes the new name (stored in capitals), and the script follows. For a character, every cue linked to it, and every cue that names it without a link, shows the new name (cue extensions such as (O.S.) are kept); for a place, its scene headings show the new name. Shots keep citing it: they cite it by id. Its mention becomes the new referenceHandle.

Only rename when the user asks. Call it without confirm first: nothing changes, and it returns a preview with the new name, the new referenceHandle and how many script lines change. Ask the user once, then call again with the same entityId and name and confirm: true. The pre-rename script is saved to version History.

A character's name is its script cue, so it takes no parentheses. A name that another element of the same kind already has is refused: when the two are the same element, use merge_entities. entityId comes from list_entities.

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": {
      "entityId": "<entityId>",
      "name": "<name>",
      "projectId": "<projectId>"
    },
    "name": "update_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe new name, e.g. "MARA" or "OLD LIGHTHOUSE".
confirmNoLeave out to get a preview of what would change; nothing is changed. Ask the user to confirm it, then call again with confirm: true once they agree.
entityIdYesThe story element (entityId from list_entities).
projectIdYesScreenWeaver project id (from list_projects).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false; the description goes well beyond them by disclosing that the preview is non-mutating, that the pre-rename script is saved to version History, that duplicate names of the same kind are refused, and that shots keep citing by id. This is exactly the recovery and side-effect context an agent needs before a destructive write.

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-loads what the tool does, then the procedure, then edge cases and sourcing; every sentence carries decision-relevant information. The middle sentence about cue extensions and scene headings is dense but earns its place by telling the agent what will visibly change.

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, non-idempotent mutation with no output schema, the description covers the preview return shape, the safety net (History), and the conflict path. The only modest gap is what the confirmed call itself returns, which an agent might want to report to the user.

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, and the description still adds meaning: the confirm parameter's preview semantics are reinforced operationally ('call again with the same entityId and name'), and the name parameter gains real constraints not in the schema (stored in capitals, a character name takes no parentheses).

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 ('Rename a story element') and immediately scopes what the rename touches: the element's stored name, script cues, scene headings, and referenceHandle. It also differentiates itself from the sibling merge_entities by explaining the duplicate-name case routes there instead.

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?

Explicit when-to-use ('Only rename when the user asks'), an exact two-step procedure (call without confirm for a preview, ask the user once, then re-call with the same entityId and name plus confirm: true), and a named alternative (merge_entities) for the overlapping case. Prerequisite sourcing for entityId is also given.

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.