Skip to main content
Glama

Flip a clip

apply_flip

Mirror a video clip by applying horizontal or vertical flip effects; choose both for a 180-degree turn. Use remove_effect to undo flips.

Instructions

Mirror a video clip by adding the Horizontal Flip and/or Vertical Flip effect. direction "both" adds the two effects (a 180 degree turn). Calling it again adds another flip, which cancels the first: remove the effect instead with remove_effect. Returns added (effect names) and the clip's effect list.

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": {
      "direction": "<direction>"
    },
    "name": "apply_flip"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
directionYes"horizontal" mirrors left-right, "vertical" mirrors top-bottom, "both" does both.
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.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the safety profile is partly covered. The description adds important behavior beyond annotations: calling again adds another flip which cancels the first, removal should use remove_effect, and it returns the added effect names plus the clip's effect list. It does not cover permissions or edge cases involving pre-existing effects, so it is strong but not exhaustive.

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 description is front-loaded with the core action, then adds the key non-idempotent behavior, the removal alternative, and the return shape. Every sentence contributes useful information without redundancy.

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?

Given the tool's complexity, full schema coverage, and existing annotations, the description provides what is missing: the toggle behavior, the correct removal path, and what the call returns. An agent has enough information to invoke it correctly without further clarification.

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 are already documented in the schema. The description adds only a small clarification that direction "both" results in a 180-degree turn; otherwise it defers to the schema for parameter meaning, which is the baseline expectation.

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 states a specific verb and resource: mirror a video clip by adding Horizontal Flip and/or Vertical Flip effects. It distinguishes the action from removal by naming remove_effect as the alternative, so an agent can tell what this tool does without opening the schema.

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 explicitly explains the primary use case (mirroring via flip effects) and gives a clear alternative for the opposite operation: use remove_effect instead of calling apply_flip again to remove. It also warns that repeated calls toggle the effect, which is exactly the kind of when-to-use context an agent needs.

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