Skip to main content
Glama

frames

Extract frames from video as JPG, PNG, or BMP image sequences. Set FPS to control extraction rate and start time or duration for precise frame sampling.

Instructions

Extract frames from video as image sequence (JPG/PNG/BMP). Control extraction rate with FPS parameter.

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": {
      "input": "<input>",
      "output_dir": "<output_dir>"
    },
    "name": "frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoFrames per second to extract (e.g., 1=one per second, 0.2=one per 5 seconds)
inputYesInput video file path
startNoStart time (HH:MM:SS)
formatNoOutput image formatjpg
durationNoDuration (HH:MM:SS or seconds)
output_dirYesOutput directory for extracted frames

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose the produced artifact (an image sequence in JPG/PNG/BMP) and rate control via FPS, but says nothing about whether output_dir is created if missing, whether existing frames are overwritten, permission requirements, or what happens when start/duration fall outside the video length.

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?

Two short sentences with the core operation front-loaded and no padding. The second sentence is partly redundant with the FPS parameter description, which keeps it from a 5.

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 six-parameter file-producing tool with no annotations and no output schema, the description covers the essential purpose and output formats. It leaves unaddressed the file-system side effects and time-range behavior that an agent would need to call it safely.

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 coverage is 100% and every parameter already has an inline description including an FPS example and format enum, so the schema does the heavy lifting. The description only restates the FPS control and format list, adding no new semantics for start, duration, or output_dir.

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 description gives a specific verb and resource — 'Extract frames from video as image sequence' — plus the supported output formats, so an agent can identify the operation without opening the schema. It stops short of explicitly distinguishing itself from siblings like thumbnail or gif, which also produce still imagery.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus alternatives such as thumbnail (single still) or gif (animated sequence), nor any prerequisites like codec support or output directory existence. Usage is only implied by the verb 'extract frames'.

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