Skip to main content
Glama

Set a recording as a scene's narration

assign_narration
DestructiveIdempotent

Sets a recording from the material library (an audio file, or the sound of a video) as the narration of ONE scene: the scene speaks with that voice, not with a synthetic one. scene_index is 0-based like the VBP; from_sec/to_sec choose the segment of the recording (seconds from its start). With with_picture, the video is also the scene's picture, tied to its voice (video only; the lips stay in sync; the segment is then at most 29.4 s). remove returns the scene to the cast voice. The voice is produced in the next production (it is cut from the recording as is, not synthesized), and a voice regeneration keeps it. Refusals are typed (narration-refused with extensions.reason: clase_no_admitida, tramo_invalido, tramo_largo_con_la_imagen, escena_de_avatar, oido_pendiente, sin_pista_de_audio, la_pista_no_tiene_voz, material_no_montable); a refusal changes nothing. Requires write. $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>",
      "scene_index": "<scene_index>"
    },
    "name": "assign_narration"
  }
}

Input Schema

NameRequiredDescriptionDefault
removeNoReturns the scene to the cast voice; the other arguments are ignored.
to_secNoEnd of the segment, in seconds (greater than `from_sec`).
asset_idNoThe `assetId` of a recording in the material library (an audio file, or a video whose sound is the voice).
from_secNoStart of the segment, in seconds from the start of the recording.
project_idYes
scene_indexYes0-based scene index (as in the Video Blueprint).
with_pictureNoVideo only: the same segment of the video is also the scene's picture, tied to its voice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations (destructiveHint/idempotent/write-scope) by disclosing that the voice is cut from the recording rather than synthesized, that it survives a voice regeneration, that it is only produced in the next production, that it requires `write` at $0, and that refusals are typed with enumerated reasons and leave state unchanged.

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 the core purpose, then layers segment, picture, removal and refusal behavior in a compact sequence with no filler. The enumerated refusal-reason list is long but each item is operationally useful; the single dense paragraph is the only structural weakness.

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?

With no output schema and 7 parameters, the description covers inputs, side effects, permissions, cost and failure modes thoroughly. It stops short of describing what a successful response contains or when the new narration becomes visible, which is a minor gap given there is no output schema.

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 already 86%, yet the description still adds meaning: the 29.4 s cap and lip-sync tie for `with_picture`, the fact that the segment is taken as-is from the recording's start, and that `remove` causes the other arguments to be ignored. This is additive rather than repetitive.

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 ("Sets a recording from the material library ... as the narration of ONE scene") and immediately frames the effect on the scene ("the scene speaks with that voice, not with a synthetic one"), which separates it from sibling assignment tools like assign_material or set_head.

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: `with_picture` is video-only, the segment must fit under 29.4 s, and `remove` reverts to the cast voice. It does not explicitly name a sibling alternative or exclusion, so it stops short of full routing 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.

Resources