Skip to main content
Glama

Set non-uniform clip scale

set_clip_scale_xy
Idempotent

Sets separate horizontal and vertical scale percentages for a video clip; disables uniform scale and removes keyframed scale so the new dimensions apply across the entire clip.

Instructions

Stretch a video clip with separate horizontal and vertical scale in percent. Turns Uniform Scale off (Premiere's Scale becomes the height and Scale Width the width). A parameter that is keyframed gets its keyframes removed first, so the new value holds for the whole clip. 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_width": "<scale_width>",
      "scale_height": "<scale_height>"
    },
    "name": "set_clip_scale_xy"
  }
}

Input Schema

NameRequiredDescriptionDefault
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".
scale_widthYesHorizontal scale in percent.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
scale_heightYesVertical scale in percent.
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

A3.8/5.0
Behavior4/5

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

With readOnlyHint=false and destructiveHint=false already declared, the description still adds real behavioral context: it explains that Uniform Scale is turned off and that Premiere's Scale/Scale Width properties are remapped, and that keyframes on the affected parameter are removed so the value holds for the whole clip. That keyframe-removal side effect is a meaningful, non-obvious consequence not covered by the annotations, though it sits somewhat uneasily with destructiveHint=false. The description also notes the return value (the clip's transform).

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 sentences, front-loaded with the core action, then the side effect, then the return value. Nothing is redundant and each sentence carries distinct information.

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 an 8-parameter mutation tool with no output schema, the description covers the action, the notable side effects, and the return value, and the schema fully documents the clip-addressing parameters. The only real gap is the absence of explicit routing against the other scale tools, which an agent must infer from tool names.

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%, so every parameter is already documented in the schema, including the clip addressing fallbacks and the 0-10000 percent bounds. The description only restates the horizontal/vertical percent split already covered by scale_width and scale_height, adding no new syntax, unit, or interaction detail beyond the schema.

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?

The description states a specific verb and scope: 'Stretch a video clip with separate horizontal and vertical scale in percent', which clearly separates it from a uniform-scale sibling. It never names the alternative tool (e.g. set_clip_scale), so the disambiguation is implied through 'separate horizontal and vertical' and 'Turns Uniform Scale off' rather than stated outright.

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

Usage Guidelines3/5

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

Usage context is only implied: the agent can infer this is the tool to reach for when width and height need different percentages, since uniform scaling is excluded by the description. There is no explicit when-to-use/when-not-to-use guidance and no named alternative among the many scale-related siblings (set_clip_scale, set_clip_scale_to_frame_size, set_item_scale_to_frame_size).

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