Skip to main content
Glama

Match frame

match_frame
Read-onlyIdempotent

Find the source project item, media path, and source time that correspond to a timeline frame for a given clip, accounting for speed and reverse playback.

Instructions

Find the source frame behind a timeline frame. For a timeline time (default: the playhead) and a clip (default: the enabled clip under that time on the highest video track, else the first audio clip there), return the source project item, media path and source_time: the position in the source media, in seconds from the media start, that plays at that timeline time. Clip speed and reverse are taken into account. exact is true for forward clips; for reversed clips it is false: the position is mirrored around the source length read from the project item's out point, so it can be a frame off, and is wrong if the item has an out mark. Computed from clip data: it does not open the Source Monitor or move the playhead (use open_in_source_monitor for that). Fails with NOT_FOUND if no clip is under the time, BAD_ARGS if the time is outside the given clip, UNSUPPORTED for a reversed clip whose media length cannot be read.

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

Input Schema

NameRequiredDescriptionDefault
timeNoSequence time in seconds. Default: the playhead position.
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.6/5.0
Behavior4/5

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

The annotations already declare readOnly/idempotent/non-destructive, and the description adds substantially: computation is from clip data with no UI side effects, plus enumerated failure modes (NOT_FOUND, BAD_ARGS, UNSUPPORTED) and their triggers. It even discloses a correctness caveat for reversed clips. It stops short of describing the response shape's field types, but that is minor against the annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then defaults, return value, exact semantics, side-effect clarification, and error codes — a logical order with no filler. It is dense and long for a single paragraph, but nearly every clause carries decision-relevant information.

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?

No output schema exists, and the description compensates by naming the returned fields and defining source_time's frame of reference (seconds from media start, speed and reverse accounted for). Combined with documented defaults and error cases, an agent has everything needed to call it correctly.

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?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: the clip selection default (enabled clip under the time on the highest video track, else first audio clip there). That is a genuine disambiguation an agent could not infer from the parameter docs.

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 and resource: 'Find the source frame behind a timeline frame,' then defines exactly what comes back (source project item, media path, source_time). It explicitly distinguishes itself from open_in_source_monitor, so an agent can separate the two without opening either 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?

Names the alternative and the condition selecting it: 'it does not open the Source Monitor or move the playhead (use open_in_source_monitor for that).' It also gives the defaulting rules for time and clip, so an agent knows it can call with zero arguments.

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