Skip to main content
Glama

Set clip Scale to Frame Size

set_clip_scale_to_frame_size
Idempotent

Toggle a video clip's timeline Scale to Frame Size setting on or off so a 4K clip fits an HD frame at 100%. Leaves Motion Scale unchanged; video clips only.

Instructions

Turn the timeline option Scale to Frame Size on or off for a video clip. On resamples the clip to the sequence frame size (a 4K clip fills an HD frame at Scale 100). It does not change the Motion effect's Scale value (use set_clip_scale or fit_clip_to_frame for that). Video clips only (BAD_ARGS for audio). Leaves the sequence active. Returns scale_to_frame_size as read back.

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": {
      "enabled": "<enabled>"
    },
    "name": "set_clip_scale_to_frame_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
enabledYestrue = scale the clip to the sequence frame size, false = original pixel size.
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.9/5.0
Behavior5/5

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

Beyond annotations (readOnly=false, idempotent=true, destructive=false), the description discloses non-obvious behavior: the toggle does not alter the Motion effect's Scale value, audio input fails with BAD_ARGS, the sequence is left active, and the new scale_to_frame_size value is returned. These are precisely the facts an agent could not derive from annotations or schema.

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?

Every sentence carries distinct information: operation, semantic explanation, alternative routing, input constraint, side effect, and return value. The primary operation is front-loaded and there is 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 mutation tool with no output schema, the definition covers effect, restrictions, error condition, state side effects, and the returned field. An agent has everything needed to select and invoke it correctly.

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 coverage is 100%, so the baseline is 3; the description earns an extra point by explaining what 'enabled' actually does operationally (resamples to sequence frame size, equivalent to Scale 100) and by naming the returned readback value. It adds little about the clip_id/index/track addressing parameters, but those are already well documented in 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?

The description uses a specific verb+resource pair ('Turn the timeline option Scale to Frame Size on or off') and immediately clarifies the semantics of 'On' with a concrete 4K-into-HD example. It also explicitly distinguishes this tool from the similarly named set_clip_scale and fit_clip_to_frame, so an agent can differentiate it from siblings without reading schemas.

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

Usage Guidelines5/5

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

It states when to use this tool versus alternatives: for the Motion effect's Scale value, route to set_clip_scale or fit_clip_to_frame instead. It also gives an explicit exclusion ('Video clips only (BAD_ARGS for audio)') and notes the side effect on sequence state, leaving almost nothing to inference.

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