Skip to main content
Glama

Assign material to a scene

assign_material
DestructiveIdempotent

Puts a library asset (own material from a registered upload, or any asset the org can see) as the visual of ONE scene — the same act as the human's «Mi Media» in the Studio. scene_index is 0-based like the VBP. For video, clip {start_sec, duration_sec|end_sec} selects the segment (≥2 s); images take no clip. Applies to the Studio version directly (it takes effect without committing a draft); the next final render picks it up. On a piece whose final is already delivered that next render is a NEW paid render, which the line does not start by itself; the answer says so (deliveredFinal). 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>",
      "asset_id": "<asset_id>"
    },
    "name": "assign_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipNo
showsNoOptional: why this material fits this scene (kept with the assignment).
asset_idYesThe `assetId` of a registered upload or of an asset in the material library.
project_idYes
scene_indexYes0-based scene index (as in the Video Blueprint).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / asset_id / description
      Previous value: -"`assetId` from `complete_upload` / `list_material`."New value: +"The `assetId` of a registered upload or of an asset in the material library."
    • changedInput schema / properties / scene_index / description
      Previous value: -"0-based scene index (as in `get_project_vbp`)."New value: +"0-based scene index (as in the Video Blueprint)."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the change applies to the Studio version immediately without a draft commit, the next final render picks it up, a delivered final means a new paid render that this call does not start, and the auth requirement is stated ('Requires `write`') along with '$0'. It does not disclose what happens to any material already assigned to that scene, which matters given destructiveHint=true.

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?

Dense but front-loaded — the core action leads, the segment and scene-index rules follow, and cost/delivery consequences come last. Every sentence carries information, though the telegraphic style and domain jargon ('VBP', '$0') make it slightly harder to parse than it needs to be.

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 write operation with no output schema, the description covers auth, cost, timing of effect, and even names the `deliveredFinal` field in the answer. The one omission is the destructive side: it never says whether an existing assignment on that scene is replaced.

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?

At 60% schema coverage the schema leaves real gaps, and the description fills them: `scene_index` is 0-based like the VBP, `clip` is video-only, requires ≥2 s, and accepts duration_sec or end_sec as alternatives. Only `project_id` and the `shows` parameter get no added meaning beyond the 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?

States a specific verb and resource ('Puts a library asset ... as the visual of ONE scene'), names the accepted asset sources, and anchors to the human equivalent ('Mi Media'). The 'ONE scene' emphasis and the visual/segment framing let an agent distinguish it from assign_narration without opening either 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?

Clear context for use: assigning a library asset to a single 0-based scene, with video segments taking a clip and images taking none. It does not explicitly name an alternative tool or state when-not to use this (e.g., audio goes to assign_narration, removal goes to remove_material), so the routing guidance stops short of the top mark.

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