Skip to main content
Glama

reference_frame

Read-onlyIdempotent

Extract a single frame or cropped region from a reference video at a given time or mark, so you can inspect or measure it against your composition.

Instructions

One frame of a reference video as an image, at t seconds, or at a mark (example id: its time and region). region boxes a part of the frame (its own pixels); crop=true returns only that part. To measure a stretch against a composition, use compare.

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

Input Schema

NameRequiredDescriptionDefault
tNoTime in seconds
cropNoReturn only the region
regionNoA box on the frame, in its own pixels
exampleNoA mark on a reference: use its time and region
referenceNoA reference video: its path in the project, e.g. media/ref.mov (list_references)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.2
    • addedInput schema / properties / crop / description
      Added value: +"Return only the region"
    • addedInput schema / properties / region / description
      Added value: +"A box on the frame, in its own pixels"
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description does add behavior beyond them: region is expressed in the frame's own pixels and crop=true narrows the return to just that sub-image, which is real output-shaping semantics. It does not cover cost/latency of decoding a frame, caching, or failure modes for out-of-range times.

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?

Three dense sentences with the purpose front-loaded and the alternative last, which is the right ordering. The parenthetical '(example id: its time and region)' is slightly compressed to the point of ambiguity about whether the caller passes an id and inherits the rest. Minor redundancy between 'region boxes a part of the frame' and crop's explanation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers output type, the two addressing modes, cropping, and the sibling escape hatch, which is solid for a frame-grab tool with no output schema. However, with 5 parameters and zero required, the description never says what a bare call returns or how precedence resolves if both t and example are supplied. That precedence/default gap is the main thing an agent could get wrong.

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 3 is the baseline, but the description earns a point by explaining the interaction the schema cannot: crop and region together change what is returned, and 'example' is a mark whose time and region are inherited. That resolves the otherwise opaque 'example' parameter better than the schema's own string does.

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?

States a concrete resource and output: 'One frame of a reference video as an image,' resolvable either at 't seconds' or 'at a mark,' and it names the sibling it is not ('use compare' for stretch measurement). An agent can distinguish it from compare without opening the schema. The only weakness is that the action verb is implicit rather than stated (e.g., 'extract'/'render').

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?

Gives an explicit redirect: 'To measure a stretch against a composition, use compare,' which is exactly the kind of when-to-use-else guidance that matters here. It also implies the two selection modes (time vs. mark) via 'at t seconds, or at a mark.' It stops short of stating exclusions or prerequisites (e.g., whether the reference must be linked first).

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