Skip to main content
Glama

compare

Read-onlyIdempotent

Measures a composition stretch against a reference video frame by frame to find timing lag, on-screen ink, position, sharpness, and the reference ease to copy.

Instructions

Compare a stretch of a composition with the same stretch of a reference video, frame by frame: how much is on screen (ink), where it sits, how sharp it is. Returns the lag that lines them up (positive: the composition is late), when each arrives and lands, and plain findings ("arrives sharp where the reference arrives blurred"), plus referenceEase: the reference move as a { curve: "linear(…)", dur } ease to put on the step that copies it. Name a mark on a reference (example: its id) to compare exactly the marked seconds and the circled part of the frame; or give reference, ref_t, dur and region ([x, y, w, h] fractions) by hand. t is where the copy starts in the composition (default: the same second as in the reference).

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": {
      "composition": "<composition>"
    },
    "name": "compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
tNoStart in the composition (default: ref_t)
durNoSeconds to compare
rowsNoInclude the per-frame measurements
ref_tNoStart in the reference, seconds
themeNo
regionNo
exampleNoA mark on a reference video (list_examples { reference }): its stretch and region are compared
referenceNoReference video: a path in the project (media/ref.mov) or an absolute path
compositionYesComposition name (file in compositions/ without .json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's added value is in disclosing outputs: the alignment lag and its sign convention ('positive: the composition is late'), arrival/landing times, plain-language findings, and a referenceEase curve object. That is substantial context beyond the annotations. It stops short of noting cost, limits, or failure behavior when a reference is missing.

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?

It is front-loaded: what is compared and what comes back appear before the parameter instructions. The prose is dense with parentheticals and could be split into a return-values sentence and a parameters sentence, but nearly every clause carries information an agent needs.

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?

With nine parameters and no output schema, the description carries the return-value burden and does so well, naming lag, arrival, landing, findings, and referenceEase. Remaining gaps are the units/precision of the lag and what happens when the reference or mark cannot be resolved, which matter for a measurement tool.

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 coverage is 78%, so the schema already documents most parameters, making 3 the baseline. The description does add real meaning for 'example' (a mark's stretch and region are what get compared), the region-as-fractions convention, and the default t = same second as the reference. It adds little for 'rows' or 'theme', which remain schema-only.

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: compare a stretch of a composition against the same stretch of a reference video, frame by frame, on ink/position/sharpness. That is far more concrete than a generic 'compare'. It does not, however, distinguish itself from the sibling 'diff', so an agent cannot rule that alternative out from the text alone.

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?

It explains two calling modes clearly (name a mark via 'example', or supply reference/ref_t/dur/region by hand) and states the default for t. What it never says is when to reach for this versus 'diff' or other inspection tools, so usage is implied by parameter shape rather than by explicit routing guidance.

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