Skip to main content
Glama

Fill frame with clip

fill_clip_to_frame
Idempotent

Scales a video clip uniformly to fill the entire sequence frame, removing empty borders at the cost of cropping edges, and centers it by default.

Instructions

Scale a video clip uniformly so it covers the whole sequence frame with no empty borders (edges may be cut off), and centre it unless center=false. Computed from the source and sequence frame sizes. Returns the scale used and the clip's transform.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fill_clip_to_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
centerNoAlso centre the clip. Default true.
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

A3.8/5.0
Behavior4/5

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

Annotations already declare it non-readOnly, non-destructive and idempotent; the description adds real value on top by disclosing that the operation is deterministic ('computed from the source and sequence frame sizes'), that aspect ratio is preserved with possible edge cropping, and what is returned (the scale used and the clip's transform). It does not say whether existing keyframes or prior scaling are overwritten, which is the main remaining behavioral gap for a mutation.

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 short sentences, each load-bearing: the operation, the conditional modifier, the derivation, and the return values. The core behavior is front-loaded with zero filler or restatement of the title.

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?

With no output schema present, the description correctly compensates by naming the returned scale and transform. Combined with full schema coverage for the seven addressing parameters and annotations covering safety and idempotency, the definition is nearly self-sufficient; only the interaction with pre-existing scale/keyframes is left unexplained.

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 all seven parameters, including the clip_id-vs-index fallback and the track_type enum, are already documented in the schema. The description only echoes the center parameter's default, adding nothing about the addressing parameters; baseline 3 applies when the schema does the heavy lifting.

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 pairs a precise verb ('Scale... uniformly so it covers the whole frame') with the exact resource (a video clip relative to the sequence frame) and states the resulting geometry ('no empty borders, edges may be cut off'). That makes the operation unmistakable, but it never names or contrasts with the near-identical sibling fit_clip_to_frame, which is the one an agent is most likely to confuse it with.

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 is only implied by the geometry described (crop-to-cover rather than letterbox-to-fit), and the one conditional given is parameter-level ('unless center=false'). There is no explicit statement of when to prefer this over fit_clip_to_frame or set_clip_scale_to_frame_size, so the agent must infer the choice from semantics alone.

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