Skip to main content
Glama

Fix a frame of an object track

edit_track
Idempotent

Fix one frame of an object track and carry the fix to its neighbours, without running the tracker again. Give the frame's corners, its box, or only the corners that are wrong (points), in any space: pass corners read off a preview with space preview and its previewId as they are. How the fix is carried: each corner's move at the fixed frame, in source pixels, is added to the same corner on the frames around it times a weight. The weight is 1 at the fixed frame and falls in a straight line to 0 at until, or at the next lost frame, or at the track's end, whichever comes first. propagate says which way it goes. Lost frames are never moved. A fix on a lost frame is not carried: that frame holds where the object was last seen. The fixed frame counts as tracked. Fix the first frame of a flagged range and let the fix fade out where the range ends; for a long drift fix a frame every second or so. The answer ends with the track's new quality verdict and flagged ranges, and a preview_range call with overlays ["tracks"] that shows the changed frames on the film: run it to check. Free.

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": {
      "trackId": "<trackId>",
      "at": "<at>",
      "corners": "<corners>",
      "box": "<box>",
      "points": "<points>",
      "space": "<space>",
      "previewId": "<previewId>",
      "clipId": "<clipId>",
      "atSpace": "<atSpace>",
      "propagate": "<propagate>",
      "until": "<until>",
      "projectId": "<projectId>"
    },
    "name": "edit_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
atYesThe second of the frame to fix (atSpace says what it is). With space preview the preview's own time is used.
boxYes[x0, y0, x1, y1] with x1 > x0 and y1 > y0. A box track takes it as it is; a plane track's corners are moved and scaled so the box around them is this box. null when you pass corners or points.
spaceYesThe space of this call's coordinates. null or source: pixels of the asset file. preview: pixels of a preview image you were shown, with previewId; its time is that preview's time. film: scene pixels from the frame's centre; film_norm: 0 to 1 of the frame; clip: the clip's own picture (with clipId). The tool converts them to the asset's pixels through the film's real transforms.
untilYesThe second where the carried fix fades to nothing (atSpace says what it is). With both, the same distance is used on each side of at. null: it fades out at the next lost frame, or at the track's end.
clipIdYesThe film clip that plays this asset, when space or atSpace needs one and several clips play it. null picks the clip that shows the asset at that time.
pointsYesSome corners only, each named: e.g. [{corner: "top right", point: [612, 140]}] when the quality check says the top right corner drifts. The other corners stay. null when you pass corners or box.
atSpaceYesWhat this call's times are. null or source: seconds into the asset file. timeline: seconds of the film, read through the clip that plays the asset then (clipId to pick one).
cornersYesThe frame's four corners in order top left, top right, bottom right, bottom left. On a box track the box around them is kept. null when you pass box or points.
trackIdYesThe object track id, as the tracking tool printed it or search_assets lists it (objectTracks).
previewIdYesWith space preview or preview_norm: the previewId the preview_frame, preview_range or preview_timeline answer printed. Else null.
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.
propagateYesWhere the fix is carried: none (this frame only), forward, backward, or both (null).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say it is a non-destructive, idempotent, local write. The description goes well beyond: it spells out the propagation math (corner delta in source pixels times a weight of 1 at the fixed frame falling linearly to 0 at until, the next lost frame, or the track end), states that lost frames are never moved and a fix on a lost frame is not carried, and notes the fixed frame becomes tracked. It also names the return payload (quality verdict plus flagged ranges) and a verification step via preview_range with overlays ["tracks"], and marks the call as free - cost behaviour annotations do not cover.

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?

Purpose, acceptable input forms, propagation mechanics, edge cases, and verification are ordered front to back, so an agent can stop reading early and still call it correctly. It runs long and contains mild redundancy - 'Lost frames are never moved. A fix on a lost frame is not carried' says the same thing twice - but nearly every sentence carries operational 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?

For a 12-parameter, all-required mutation with no output schema, the definition covers what an agent needs: valid input combinations, space/time semantics, propagation edge cases at lost frames and track ends, and what comes back (quality verdict, flagged ranges) plus how to visually confirm. Nothing material about calling it correctly is left unstated.

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 the baseline is 3; the description earns an extra point by explaining the semantics behind the fields rather than restating them - how until and propagate jointly control the falloff, that corner deltas are measured in source pixels regardless of input space, and that preview-space corners may be passed verbatim with a previewId. It does not add anything on atSpace or clipId that the schema does not already say.

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 opening sentence names a specific verb and resource - fix one frame of an object track - and immediately scopes it against the tracker itself: 'carry the fix to its neighbours, without running the tracker again.' That contrast distinguishes it from the track_* and smooth_track siblings without needing their schemas.

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?

It gives concrete operating advice: fix the first frame of a flagged range and let the fade cover the range, or fix a frame every second or so for long drift, and pass preview-read corners with space=preview plus previewId. It also implies which input forms to choose (box, corners, or points when the quality check names a drifting corner). What it lacks is an explicit statement of when NOT to use it, e.g. for global jitter where smooth_track or offset_track would apply.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.