Skip to main content
Glama

media_track

Track a single object across a video range with template matching—no model required—and hold its last position when confidence drops.

Instructions

Follow one object through a video range with OpenCV template matching (no model).

box: "x,y,w,h" of the object on the start frame, in source pixels (read it off a media_frames grid). Points whose match score is below hold keep the last position and are marked held. Good for UI, cursors, captions, small units; weak when effects cover the object (then take keyframes with gemini_analyze_media instead). Check the result with media_overlay.

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": {
      "video_path": "<video_path>",
      "start": "<start>",
      "end": "<end>",
      "box": "<box>"
    },
    "name": "media_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxYes
endYes
holdNo
everyNo
startYes
searchNo
updateNo
out_pathNo
session_idNo
video_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the algorithm, the quality-gating rule ('points whose match score is below `hold` keep the last position and are marked held'), and a failure mode, but it never says whether the tool writes a file (implied only by the unexplained out_path/session_id params) or what the result contains, leaving side effects and output shape undisclosed.

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?

Four dense sentences, front-loaded with the core purpose, then parameter guidance, then fit/alternatives, then verification. Every sentence carries distinct information and nothing is repeated from structured fields.

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?

For a 10-parameter tool with no annotations and no output schema, the description covers purpose, the critical box format, and the held-point rule well, but leaves output format, side effects of out_path/session_id, and the meaning of the tuning parameters (every, search, update) entirely to inference.

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 0% across 10 parameters, so the description must compensate. It meaningfully explains the hardest one, `box` (x,y,w,h of the object on the start frame, in source pixels, read off a media_frames grid) and the semantics of `hold`, but `start`, `end`, `every`, `search`, `update`, `out_path`, and `session_id` remain completely undocumented in both places.

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 gives a specific verb and resource ('Follow one object through a video range') plus the exact mechanism ('OpenCV template matching (no model)'), which immediately separates it from the model-based sibling gemini_analyze_media. An agent can tell what this does and what it does not do 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 states positive cases ('Good for UI, cursors, captions, small units'), the failure condition ('weak when effects cover the object'), the explicit alternative for that case ('take keyframes with gemini_analyze_media instead'), and a verification step ('Check the result with media_overlay'). When-to-use, when-not-to-use, and alternatives are all present.

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