Skip to main content
Glama

Place clip in a corner (picture-in-picture)

place_clip_in_corner
Idempotent

Scale a video clip to a percentage of the sequence width and position it in a chosen corner with a pixel margin to create picture-in-picture layouts, accounting for rotation and crop.

Instructions

Make a picture-in-picture: scale a video clip so its width is size percent of the sequence width, and move it into a corner with a margin in pixels. Put the clip on a track above the main picture. Rotation and crop are taken into account. Returns the clip's transform and bounding box.

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": {
      "corner": "<corner>"
    },
    "name": "place_clip_in_corner"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoClip width as a percent of the sequence frame width. Default 30.
cornerYesWhich corner of the frame.
marginNoGap between the clip and the frame edges, in sequence pixels. Default 40.
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.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description adds genuinely useful behavior beyond them: it accounts for existing rotation and crop, and returns the resulting transform and bounding box. It does not clarify whether the tool creates a track when none exists above the main picture, which is the main ambiguity left.

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 outcome, then the prerequisite, then the return value. No filler, no restating of the title, and the most decision-relevant information comes first.

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 9-parameter mutation tool with full schema coverage and no output schema, the definition covers effect, prerequisite, and return shape. The one gap is not stating whether it modifies or creates the target track, which matters for an agent working on a single-track sequence.

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 the baseline is 3. The description restates what the schema already documents (size as a percent of sequence width, margin in pixels, corner selection) without adding units, ranges, or interaction rules the schema lacks.

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+resource outcome: scale a clip to a percent of sequence width and move it into a corner with a margin. The picture-in-picture framing, the rotation/crop caveat, and the return value make it distinguishable from siblings like place_clip_on_track, animate_clip_transform, and crop_clip.

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?

Makes clear when the tool applies (PiP composition) and embeds an operational prerequisite: the clip must sit on a track above the main picture. It also nudges toward clip_id over clip_index. What's missing is an explicit contrast with the nearest alternative (place_clip_on_track) so an agent can confidently choose between the two.

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