Skip to main content
Glama

extract_frames

Save still images from a video at chosen timestamps or every N seconds, with options for PNG/JPG output, resizing, and frame limits.

Instructions

Save still images (thumbnails) from a video.

Either times (a list like [1, 12.5, "0:01:30"]: one image per time) or every_s (one image every N seconds, starting at 0). With neither, one frame from the middle. format: png (default) or jpg. width: resize to this width (aspect kept). max_frames guards against producing thousands of files. Images go to output_dir (default: a "name.frames" folder next to the input) as name.frame-12.5s.png or name.frame-0001.png.

Input Schema

NameRequiredDescriptionDefault
inputYes
timesNo
widthNo
formatNopng
dry_runNo
every_sNo
overwriteNo
timeout_sNo
max_framesNo
output_dirNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 useful behavior: default output directory ('name.frames' beside the input), the exact output filename patterns, and that max_frames exists to prevent thousands of files. However it never mentions `overwrite` (default false — what happens to existing files?), `dry_run`, or `timeout_s`, all of which materially affect a tool that writes files to disk.

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?

The mode-selection logic is front-loaded in the first two sentences and the remaining details are packed into short parenthetical clauses with no filler. The heavy use of inline parentheses makes it denser to scan than a bulleted layout would be, but nothing is redundant.

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?

An output schema exists, so return values need no explanation, and the frame-selection and naming behavior is well covered. For a 10-parameter tool with zero annotations that writes files to a directory, leaving overwrite semantics, dry_run and timeout unaddressed is a real gap an agent would have to guess about.

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 description coverage is 0% across 10 parameters, so the description must compensate and largely does: it explains `times` accepts numbers or timestamp strings like "0:01:30", `every_s` starts at 0, `format` defaults to png, `width` preserves aspect ratio, and where `output_dir` points by default. Three parameters — dry_run, overwrite, timeout_s — get no explanation at all, so the coverage is good but incomplete.

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 opening line gives a precise verb and resource: 'Save still images (thumbnails) from a video.' That unambiguously separates it from siblings like extract_audio, make_gif and trim without needing to name them. It stops short of explicitly routing against a sibling, so it is clear but not sibling-differentiated by name.

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 clearly explains the three mutually exclusive modes — explicit `times`, uniform `every_s` sampling, or the fallback single middle frame — which is exactly the decision an agent must make before calling. It gives no guidance on when to prefer this tool over transform/make_gif, so it is strong on intra-tool context but silent on alternatives.

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