Skip to main content
Glama

replace_clip

Swap a timeline clip with another project media item, optionally preserving source in/out, enabled state, Motion values, and effects to maintain edits.

Instructions

Replaces a clip on the timeline with another media item.

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": {
      "clipId": "<clipId>",
      "newProjectItemId": "<newProjectItemId>"
    },
    "name": "replace_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipIdYesThe ID of the clip to replace
preserveEffectsNoWhen true (default), restore source in/out, the enabled flag, Motion values, and other effects on the replacement. When false, the new item is placed at full duration with default Motion.
newProjectItemIdYesThe ID of the new project item to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It does not say whether the replacement is reversible, whether surrounding clips ripple or the slot duration is preserved, what happens to the original media, or what permissions are needed. The only behavioral detail available (effect preservation) lives in the schema, not the description.

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?

A single front-loaded sentence with zero wasted words. It is efficient, though brevity here borders on under-specification rather than true conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a timeline-mutating tool with no annotations and no output schema, so the description should explain destructiveness, timing behavior, and error conditions. It provides none of these, leaving the agent with only the bare purpose statement plus the schema's field docs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, including a detailed explanation of preserveEffects defaulting to true, so the schema already does the parameter work. The description adds no meaning beyond it, which is the baseline 3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Replaces a clip on the timeline with another media item.' An agent can distinguish this from move_clip, trim_clip, or duplicate_clip by the replacement semantics, though the description never explicitly contrasts with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as duplicate_clip or add_to_timeline. The agent must infer the usage context entirely from the verb and the required parameters.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.