Skip to main content
Glama

Set clip scale

set_clip_scale
Idempotent

Sets a video clip's uniform Motion Scale in percent and enables Uniform Scale, removing existing scale keyframes so the new value holds for the whole clip.

Instructions

Set a video clip's uniform Motion Scale in percent (100 = source pixels 1:1) and turn Uniform Scale on. A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. Use fit_clip_to_frame / fill_clip_to_frame to scale to the sequence frame. Returns the clip's transform.

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": {
      "scale": "<scale>"
    },
    "name": "set_clip_scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleYesScale in percent.
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that keyframed parameters lose their keyframes first so the value holds for the whole clip, that Uniform Scale is switched on as a side effect, and what the tool returns (the clip's transform). The keyframe removal is a real data-loss caveat that the idempotentHint/destructiveHint annotations do not convey on their own.

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?

Three tight sentences, front-loaded with the primary effect, followed by the caveat and the sibling alternative. No filler or restatement of the title.

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 7-parameter tool with full schema coverage and no output schema, the description covers the mutation's semantics, its side effects, and the return value. An agent has everything needed to call it correctly without opening the schema for behavior.

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 description coverage is already 100%, so the baseline is 3, but the description adds real meaning by defining the percent scale reference point (100 = source pixels 1:1) and by clarifying that only a uniform value is accepted, which the numeric 'scale' parameter alone does not convey.

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 ('Set a video clip's uniform Motion Scale in percent') with the exact unit convention (100 = source pixels 1:1) and the side effect of enabling Uniform Scale. The word 'uniform' implicitly separates it from the xy variant in the sibling list, and the frame-scaling alternatives are named outright.

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?

Explicitly routes the agent to fit_clip_to_frame / fill_clip_to_frame when the goal is scaling to the sequence frame, which is the main competing intent. It does not state when to prefer this over set_clip_scale_xy or set_clip_transform, but the uniform-vs-per-axis distinction is implied by 'uniform' and 'Uniform Scale on'.

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

Deploy Server

Other Tools