Skip to main content
Glama

Stage a free edit op

stage_op

Stages ONE free edit op on a project — deterministic, no provider is called — into the project's conversation draft: the SAME op the human director runs from a panel or the chat (agent and human edits converge on ONE op-log). The draft becomes a new version when it is committed. Only the free ops run here: the paid re-authoring ops and the creation fields have their own tools (invocableVia in the op catalogue names the tool of each op). Ops:

  • assign_material_to_shot: Puts a piece of the person's own library material (its asset_id: a photo or a video they uploaded) on one shot of a scene, by default the base shot that is the scene's visual; the edit mounts it as is, with nothing bought or searched. Deterministic, $0. Args: scene_index, asset_id (the assetId of the person's own material in the piece), shot_index? (0-based; default the base shot, which is the scene's visual), shows? (what the material shows, in English; the shot's brief only when the scene has no shot list yet), source_start_sec? (second of the video the shot enters from); only on an ai_image, ai_video or archive scene.

  • assign_narration_to_scene: Sets a segment (from_sec-to_sec) of the person's own recording (its asset_id: an audio file, or the sound of a video they uploaded) as the VOICE of one scene; with with_picture that video is also the scene's picture, tied to its voice. The voice is cut from the recording at the next build, not synthesized, and a voice regeneration keeps it. Deterministic, $0. Args: scene_index, asset_id (the assetId of the person's own recording in the piece: an audio file, or a video whose sound is the voice), from_sec, to_sec (the segment, in seconds from the start of the recording), with_picture? (video only: the same segment is also the scene's picture, tied to its voice; on an ai_image, ai_video or archive scene as its base shot, on a media or local scene as its base). The voice is cut from the recording at the next build, not synthesized.

  • remove_narration_from_scene: Returns one scene to the cast voice: the person's own recording it spoke with is taken away. Deterministic, $0. Args: scene_index (the scene goes back to the cast voice).

  • replan_scenes: Reorder the scenes (a permutation of indexes). Deterministic, $0. Args: order=[int...].

  • set_marca: Edits the piece's BRAND (the letter class for titles and text: serif, sans, display, mono; the colours by role: background, text, accent; the logo, the claim, whether it asks for title cards): a partial typed change and/or the person's own words. The subtitle track and the on-screen captions wear it at the next final render; in-house engine scenes wear it when they are rebuilt. Deterministic, $0. Args: marca? (the PARTIAL brand, typed: tipografia {titulos, texto: serif|sans|display|mono|script; peso_titulos; caja_titulos}, paleta {fondo, texto, acento, acento2: #rrggbb; tonos}, logotipo {declarado, handle}, claim, pide_placas; null deletes a field), dicho? (the person's own words about the brand; what marca does not type is read from them). At least one.

  • set_piece_fields: Set PIECE-level fields (production_score: silence_plan, music_intent, narrative_arc…), validated by the schema. Deterministic, $0. Args: fields (partial production_score: silence_plan, music_intent, narrative_arc, expected_total_duration_sec…; lists replace).

  • set_scene_fields: Set concrete fields of one scene (narration, duration, silences, infographic data…), validated by the schema. Deterministic, $0. Args: scene_index, fields (partial scene object: narrator_text, direction_notes, pre_silence_sec, pause_after_sec, visual.duration_target_sec, visual.prompt, infographic.data, kinetic_caption…; nested dicts merge by key, null deletes; validated by the VBP schema).

  • set_title: Sets the piece's TITLE (the name it is saved and published under); once committed, the choice is sealed and nothing overwrites it. Deterministic, $0. Args: title (the new title of the piece: one line, in the piece's language, at most 140 characters).

  • set_visual: Set a scene's visual type and/or visual prompt. Deterministic, $0. Args: scene_index, visual_type?, visual_prompt?.

  • swap_voice: Change the voice (semantic attributes) of one scene or all of them. Deterministic, $0. Args: voice_spec={...} (semantic attributes only: timbre, cadence, accent, language, apparent_gender, voice_style — NOT a voice id: the concrete voice is a piece-level decision made when the piece is created; a scene has no voice pin of its own, for the human either), scene_index?. The result carries the coherence report: a hasBlocking draft can still be committed with force=true. While an authoring turn of the same project is in flight the draft is not touched (authoring-in-progress). Requires the write scope. $0.

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": {
      "project_id": "<project_id>",
      "op": "<op>",
      "args": "<args>"
    },
    "name": "stage_op"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
argsYesOp arguments (see description).
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / op / enum
      Previous value: -[
      -  "assign_material_to_shot",
      -  "assign_narration_to_scene",
      -  "remove_narration_from_scene",
      -  "replan_scenes",
      -  "set_piece_fields",
      -  "set_scene_fields",
      -  "set_title",
      -  "set_visual",
      -  "swap_voice"
      -]New value: +[
      +  "assign_material_to_shot",
      +  "assign_narration_to_scene",
      +  "remove_narration_from_scene",
      +  "replan_scenes",
      +  "set_marca",
      +  "set_piece_fields",
      +  "set_scene_fields",
      +  "set_title",
      +  "set_visual",
      +  "swap_voice"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / op / enum
      Previous value: -[
      -  "assign_material_to_shot",
      -  "assign_narration_to_scene",
      -  "remove_narration_from_scene",
      -  "replan_scenes",
      -  "set_piece_fields",
      -  "set_scene_fields",
      -  "set_visual",
      -  "swap_voice"
      -]New value: +[
      +  "assign_material_to_shot",
      +  "assign_narration_to_scene",
      +  "remove_narration_from_scene",
      +  "replan_scenes",
      +  "set_piece_fields",
      +  "set_scene_fields",
      +  "set_title",
      +  "set_visual",
      +  "swap_voice"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / op / enum
      Previous value: -[
      -  "replan_scenes",
      -  "set_piece_fields",
      -  "set_scene_fields",
      -  "set_visual",
      -  "swap_voice"
      -]New value: +[
      +  "assign_material_to_shot",
      +  "assign_narration_to_scene",
      +  "remove_narration_from_scene",
      +  "replan_scenes",
      +  "set_piece_fields",
      +  "set_scene_fields",
      +  "set_visual",
      +  "swap_voice"
      +]
  4. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses that nothing is written to a version until commit, that the result carries a coherence report whose `hasBlocking` can be overridden with `force=true`, that staging is skipped while an authoring turn is in flight (`authoring-in-progress`), and that the `write` scope is required. This is exactly the mutating-but-reversible, $0, deterministic profile an agent needs.

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-loaded with purpose before the op list, and the bulleted structure makes ten ops scannable. It carries some redundancy — 'Deterministic, $0' repeated on every op and the voice-cut sentence duplicated inside `assign_narration_to_scene` — which is the main thing keeping it from a 5.

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 ten-op multiplexed tool with a nested opaque args object and no output schema, the definition covers op selection, argument shapes, result contents (coherence report), override behavior, concurrency guard, and required scope. Nothing material is left for the agent to guess.

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 only 33% and the `args` object is opaque ('see description'), yet the description enumerates per-op arguments with types, defaults, units, and constraints (e.g. `shot_index` 0-based defaulting to the base shot, `from_sec`/`to_sec` semantics, `marca` partial-typed fields with null-deletes). This fully compensates for the thin 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?

The opening states a specific verb and resource — stages ONE free edit op into the project's conversation draft — and immediately delimits scope (free ops only; paid re-authoring ops and creation fields live elsewhere). An agent can tell this apart from authoring/execution tools without opening the schema.

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 explicitly excludes paid re-authoring ops and creation fields, points to `invocableVia` in the op catalogue to route to the right tool, and notes the draft becomes a version only on commit. It stops short of naming the concrete alternative tools (e.g. author_op/run_op), so routing still requires one inference step.

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.

Resources