Skip to main content
Glama

media_frames

Extract still frames from a video range with source timestamps and crop offsets, optionally adding coordinate grids or a contact sheet for locating and analyzing positions.

Instructions

Still frames of a video range, with index.json (each frame's source time and crop offset).

crop: "W:H:X:Y" in source pixels. grid: draw a labelled grid every N px, labelled in SOURCE video coordinates, so positions read off a frame need no conversion (use 100 for coordinates). sheet: also tile all frames into sheet.png. Read the frames yourself, or pass a few to gemini_analyze_media (more_files). Check positions afterwards 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>"
    },
    "name": "media_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
fpsNo
cropNo
gridNo
sheetNo
startNo
out_dirNo
session_idNo
video_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does disclose the concrete artifacts produced (per-frame files plus index.json, optional sheet.png) and the coordinate convention used for grid labels. It leaves silent the riskier behaviors an agent would want: whether it writes into an existing out_dir, whether files are overwritten, and what session_id affects.

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?

Dense and largely front-loaded, with the artifact summary first and per-parameter notes following. A few fragments read as terse shorthand ('use 100 for coordinates', 'more_files') that require the reader to infer the surrounding context, but no sentence is padding.

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 9-parameter tool with no output schema and no annotation coverage, the description covers the output layout and three of the parameters well. The remaining gaps (time range semantics, fps defaults, output directory behavior, session scoping) mean an agent could still call it with wrong assumptions about where files land and which segment is extracted.

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 9 parameters, so the description must compensate. It explains crop format 'W:H:X:Y' in source pixels, grid spacing and coordinate basis, and the sheet toggle, but says nothing about start, end, fps, out_dir, or session_id, leaving five parameters undocumented in both schema and prose.

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?

Opens with a specific verb and artifact: 'Still frames of a video range, with index.json (each frame's source time and crop offset).' This clearly separates it from siblings that clip, mix, or overlay media, and the downstream routing to gemini_analyze_media and media_overlay reinforces the distinction.

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 explicit downstream usage: read the frames yourself, or pass a few to gemini_analyze_media via more_files, then verify positions with media_overlay. It does not state when to prefer this over media_clip or media_track, so the exclusion side of the guidance is implicit rather than stated.

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