Skip to main content
Glama

summarize_video

Break a local video into scenes and caption frames so you can write a scene-by-scene summary or answer questions about its visual content.

Instructions

Understand a local video scene by scene, so you can summarize or answer questions about it.

Splits the video into shots (hard cuts and slow camera drift), captions frames from
each shot, and groups consecutive shots that show the same thing into scenes. Returns
the video length, the subjects that recur across scenes, and for each scene its time
range, what is seen and its keywords. Use it to write a summary in your own words,
scene by scene. Visual only: there is no audio or speech.

The whole video is always covered. Long or fast-cut videos are condensed: similar
neighbouring scenes are merged so the result has at most `max_scenes` scenes. A
15-minute video takes about a minute on a laptop; progress is reported while it runs.

Args:
    path: Absolute path to the video (mp4, mov, mkv, avi, webm, m4v).
    scene_threshold: Change score (0-1) that counts as a cut; lower = more scenes.
    frames_per_shot: Frames captioned per shot (1-5), or 0 to pick by video length
        (3 up to 10 min, 2 up to 30 min, then 1). More = richer but slower.
    max_scenes: Merge similar neighbouring scenes down to at most this many (0 = never).
        Lower it for a shorter overview of a long video.
    max_shots: Stop after this many shots (0 = no limit, the default). The result
        says clearly if the video was not covered to the end.

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": {
      "path": "<path>"
    },
    "name": "summarize_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_shotsNo
max_scenesNo
frames_per_shotNo
scene_thresholdNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/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 does well on modality ('visual only, no audio') and runtime ('15-minute video takes about a minute, progress is reported'). It omits filesystem/permission expectations, what happens on an invalid or unsupported path, and whether analysis is cached or repeatable, which are material for a local-file processing tool.

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 purpose and outputs come first, followed by behavior, then a compact Args block; nothing is redundant. It is on the long side and repeats return contents that an output schema already provides, but the density is justified for a five-parameter pipeline tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-stage video pipeline, the description covers inputs, coverage guarantees, condensation, truncation signaling, and cost, and an output schema exists so return shape needn't be restated. The gap is operational: no mention of file access, failure modes, or long-run timeouts beyond a single laptop estimate.

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%, yet the Args section defines all five parameters with meaning, valid ranges, defaults, and trade-offs — e.g. frames_per_shot 0 auto-selects 3/2/1 by video length, scene_threshold lower means more scenes, max_shots 0 means no limit. This fully compensates for the empty schema.

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 names a specific verb and resource — understanding a local video scene by scene — and spells out the mechanism (shot splitting, frame captioning, scene grouping). It never names or contrasts with the sibling describe_video, so an agent must infer which tool fits when both could apply.

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 states the intended downstream use ('write a summary in your own words, scene by scene') and gives tuning guidance such as lowering max_scenes for a shorter overview of a long video. It offers no explicit when-not guidance or comparison to alternative tools for the same task.

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

Deploy Server

Other Tools