Skip to main content
Glama

get_video_frames

Extract video frames as images to inspect a clip. Control count, interval, time range, and size; use contact sheets to skim long videos without exceeding limits.

Instructions

Get frames of a video as image blocks, to "watch" a clip. Immich keeps one poster per video; this downloads the video and cuts frames locally (PyAV, a dependency since 1.7.1, or ffmpeg on PATH). Every frame is one image for the model. Workflow: 6 frames first; to look closer, narrow with start/end or use interval (down to 1 s). Above 12 frames the tool returns a JSON plan with frames_planned and estimated_tokens instead of images: show it to the user and call again with confirm=true only if they agree. Hard cap 120 per call. For base64 JSON with timestamps use get_video_frames_json. Read-only.

Args:
    asset_id: The video asset's UUID.
    count: Frames evenly spaced over the segment (default 6). Ignored when interval > 0.
    size: 'thumbnail' (250px, ~1.6k tokens per frame) or 'preview' (1440px, ~6.4k). Default 'thumbnail'.
    start: Segment start in seconds (default 0).
    end: Segment end in seconds (0 = to the end).
    interval: One frame every N seconds instead of count (1 = one per second, the maximum granularity).
    confirm: Required (true) when more than 12 frames would be produced; ask the user first.
    sheet: Pack the frames into contact sheets (30 per image, timestamps burned in):
        a long video becomes one or two images instead of dozens, so no
        confirmation is needed. Use it to skim, then cut the moments that matter.

Returns: JPEG image blocks in time order, or JSON (confirmation plan / error).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
sizeNothumbnail
countNo
sheetNo
startNo
confirmNo
asset_idYes
intervalNo
Install Server

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It does so thoroughly: it is read-only, it downloads the video and cuts frames locally, it depends on PyAV 1.7.1+ or ffmpeg, every frame becomes one model image, and frames above 12 trigger a confirmation plan rather than images. It also exposes the hard cap and token estimates, giving the agent a strong model of cost and side effects.

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?

The description is long but every sentence earns its place: it front-loads the core purpose, then explains the workflow, limits, alternative format, and each argument in a scannable Args block. Technical details like the PyAV dependency and token estimates are not padding; they affect invocation decisions. The structure mirrors how an agent actually needs to reason about the call.

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?

Given 8 parameters, no output schema, and no annotations, this description is remarkably complete. It covers what the tool returns (JPEG image blocks in time order, or JSON), when confirmation is required, the hard cap, the sheet alternative, and the sibling tool for timestamped base64 JSON. An agent has everything needed to select this tool and invoke it correctly in the tricky >12-frames case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate entirely — and it does. Every parameter gets an explanation beyond its schema title: asset_id is the video asset's UUID, count is evenly spaced frames, size includes pixel dimensions and approximate token cost, start/end are seconds, interval means one frame every N seconds, confirm is required past 12 frames, and sheet packs frames into contact sheets with timestamps. This is exemplary compensation for a schema with no parameter descriptions.

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 opens with a specific verb and resource: "Get frames of a video as image blocks, to 'watch' a clip." It clearly distinguishes itself from the sibling by explicitly naming get_video_frames_json as the alternative for base64 JSON with timestamps. This is far more than a tautology and fully differentiates the tool's scope.

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?

Provides an explicit workflow: try 6 frames first, narrow with start/end, or use interval down to 1 second. It also gives a decision rule for >12 frames (show the JSON plan, call again with confirm=true only if the user agrees), states the hard cap of 120, and names the alternative tool for a different return format. This is complete, actionable usage guidance.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/drolosoft/immich-photo-manager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server