Skip to main content
Glama

Crop clip

crop_clip
Idempotent

Crops a video clip by setting per-edge Crop percentages, optionally removing keyframes so the value holds for the whole clip. The cropped area becomes transparent, revealing lower tracks.

Instructions

Crop a video clip with the Motion component's Crop parameters, in percent of the source frame per edge. Edges you omit keep their value. The cropped area becomes transparent (lower tracks show through). 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

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": "crop_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoPercent cropped from the top edge.
leftNoPercent cropped from the left edge.
rightNoPercent cropped from the right edge.
bottomNoPercent cropped from the bottom edge.
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.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses three non-obvious behaviors: omitted edges retain their existing values (partial-update semantics), the cropped region becomes transparent so lower tracks show through, and any keyframed edge has its keyframes stripped before the new value is applied. It also states the return value ('the clip's transform'), which is valuable given no output schema exists.

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?

The core operation and its unit are front-loaded in the first sentence, and each subsequent short sentence carries a distinct, load-bearing fact (partial updates, transparency, keyframe removal, return value). There is no filler or repetition of schema content.

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 a 10-parameter tool with zero required parameters and a fully documented schema, the description covers behavior and return value well. The one omitted point is that some clip-identification path (clip_id, or track_index + clip_index) is effectively needed, which the description only partly hints at by not discussing clip addressing at all.

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?

With 100% schema description coverage the baseline is 3, but the description genuinely adds meaning: it explains that the edge values are percentages of the source frame, that omitting an edge preserves its current value, and that keyframed edges lose their keyframes. That is real semantics an agent would not get from reading 'Percent cropped from the top edge' alone.

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 opens with a specific verb and resource ('Crop a video clip') and names the exact mechanism ('Motion component's Crop parameters, in percent of the source frame per edge'), so an agent knows precisely what operation runs. It does not explicitly contrast itself with neighboring tools like fit_clip_to_frame, fill_clip_to_frame, or place_clip_in_corner, keeping it just short of a 5.

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 implied by the purpose statement rather than stated: there is no explicit 'use this when...' guidance and no alternative tool is named for related framing operations. The parameter-level hint that clip_id is 'Preferred' over index-based addressing is the closest thing to invocation guidance, and it lives in the schema rather than the description.

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