Skip to main content
Glama

Makemancer

Extract Frames

extract_frames

Export frames from a video as images. Costs 2 credits per video. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.

Modes:

  • timestamps: pass timestamps such as [1, 3, 8] for one image file per position, in the given order (up to 24). Selected automatically when timestamps is given. Each must be before the end of the video.

  • timeline (default, best for reviewing a video): one overview image of evenly sampled, time-labelled frames. Defaults to 12 frames; max_frames accepts 1 to 24; start_time and end_time inspect a section. Call load_image with timelineUrl from the completed job to look at it.

  • single: one first, middle or last frame (position, or mode=first/middle/last).

  • batch: separate files for every Nth video frame (frame_interval 1 to 300, not seconds), up to max_frames (1 to 500, default 100).

output_format (png, jpg, webp; default png) and quality (1 to 100) apply to batch and timestamps; timeline and single return jpg. Out-of-range numbers are rounded and clamped, and check_job returns the adjustment as a warning.

All modes accept FFmpeg-readable video containers up to 5 GiB. Direct videos are read with HTTP byte ranges when the server supports them, so only the needed parts are fetched. Finished (on-demand) HLS playlists (.m3u8) are supported and only the segments of the requested frames are fetched; live streams and encrypted (DRM) streams are not. Do not search the asset library or submit another extraction while this job is running.

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_url": "<video_url>"
    },
    "name": "extract_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNotimeline (default), timestamps, single, batch, first, middle or last.
qualityNoBatch or timestamps with jpg or webp: 1-100. Default: 95.
end_timeNoTimeline only: end of the section.
positionNoFor single mode: first, middle or last. Default: middle.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
video_urlYesVideo file or finished HLS playlist (.m3u8) to extract frames from.
max_framesNoTimeline 1-24 (default 12); batch 1-500 (default 100).
start_timeNoTimeline only: start of the section.
timestampsNoExact positions in seconds. Selects timestamps mode.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
output_formatNoBatch or timestamps: png (default), jpg or webp.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
frame_intervalNoBatch only: take every Nth frame (1-300, not seconds). Default: 12.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses cost (2 credits per video), the async job model with check_job for the permanent URL, automatic refund on failure, the 10-minute dedup behavior surfaced via force_new, clamping warnings, a 5 GiB size ceiling, and HLS support with explicit exclusions for live and DRM streams.

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?

Front-loads the purpose, cost, and async contract before the mode breakdown, and uses a clear labeled list. It is dense with genuinely useful facts, though the FFmpeg/HTTP byte-range and HLS segment-fetch details run longer than an agent needs to select and call the tool.

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 13-parameter tool with no output schema, the description covers the full call lifecycle: input constraints, mode selection, format applicability, cost, failure refund, result retrieval via check_job, and downstream image viewing via load_image. Nothing an agent needs to invoke it correctly is missing.

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 coverage is already 100%, yet the description adds cross-parameter semantics the schema cannot express: timestamps auto-selects timestamps mode, max_frames has different valid ranges per mode, output_format/quality apply only to batch and timestamps while timeline and single return jpg, and out-of-range values are rounded and clamped with a warning.

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 resource: 'Export frames from a video as images,' then immediately names the four operating modes (timestamps, timeline, single, batch) so an agent knows what shape of output each produces. This is clearly distinguishable from siblings like generate_video or load_image.

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?

Gives explicit when-to-use guidance per mode, including a default recommendation ('timeline (default, best for reviewing a video)') and the hand-off instruction to call load_image with timelineUrl to view the result. It also states when NOT to act ('Do not search the asset library or submit another extraction while this job is running') and references check_job for completion.

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.