Skip to main content
Glama

Edit one scene

update_scene
Idempotent

Changes one scene: send only the fields to change. Sending dialogue, characters or props replaces that whole list. Use it for targeted fixes (a sharper hook, a shorter line, a different look) instead of rewriting the episode.

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": {
      "scene_id": "<scene_id>",
      "expected_version": "<expected_version>",
      "patch": "<patch>"
    },
    "name": "update_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYesOnly the scene fields to change (beat, heading, action, dialogue, shots, characters…).
scene_idYesThe scene id (scn_…), from get_episode.
expected_versionYesThe version you read; the write fails with VERSION_CONFLICT if it changed since

Output Schema

NameRequiredDescriptionDefault
changedYes
versionYes
scene_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, idempotent, non-destructive edit. The description adds important behavioral context beyond that: callers should send only changed fields, and sending dialogue, characters, or props replaces the entire corresponding list.

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

Conciseness5/5

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

The description is short and front-loaded, starting with what the tool does and then adding the two most important behavioral cautions. Every sentence contributes directly to correct tool selection or invocation.

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?

The schema is rich and an output schema exists, so the description does not need to document every field. It covers the critical patch semantics and replacement behavior, though for a complex nested update tool it could have noted version-conflict handling or the full scope of list replacement.

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. The description goes beyond the schema by clarifying patch semantics and warning that list-valued fields are replaced wholesale, which is meaningful guidance for the patch parameter.

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?

The description opens with a specific verb and resource: "Changes one scene." It immediately scopes the operation to targeted fixes rather than episode rewrites, which clearly distinguishes this from broader update tools.

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?

It gives a clear usage context: "Use it for targeted fixes ... instead of rewriting the episode." The main alternative is described conceptually rather than by tool name, and there is no explicit when-not-to-use guidance beyond that contrast.

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.